Function Call Signature

Checks that the function call format is correct.

Valid: Correct spacing is used around parentheses.

foo<em></em>(<em></em>$bar, $baz<em></em>);

Invalid: Incorrect spacing used, too much space around the parentheses.

foo<em> </em>(<em> </em>$bar, $baz<em> </em>);

Valid: Correct number of spaces used for indent in a multi-line function call.

foo( <em> </em>$bar, <em> </em>$baz );

Invalid: Incorrect number of spaces used for indent in a multi-line function call.

foo( <em> </em>$bar, <em> </em>$baz );

Valid: Closing parenthesis for a multi-line function call is on a new line after the last parameter.

foo( $bar, $baz <em>)</em>;

Invalid: Closing parenthesis for a multi-line function call is not on a new line after the last parameter.

foo( $bar, $baz<em>)</em>;

Valid: The first argument of a multi-line function call is on a new line.

foo( <em>$bar</em>, $baz );

Invalid: The first argument of a multi-line function call is not on a new line.

foo(<em>$bar</em>, $baz );

Valid: Only one argument per line in a multi-line function call.

foo( $bar, <em>$baz</em> );

Invalid: Two or more arguments per line in a multi-line function call.

foo( $bar, <em>$baz</em> );

Valid: No blank lines in a multi-line function call.

foo( $bar, $baz );

Invalid: Blank line in multi-line function call.

foo( $bar, <em></em> $baz );