On the line-integral formulation of mode-matching technique