opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
PSR2
/
Docs
/
Methods
➕ New
📤 Upload
✎ Editing:
FunctionCallSignatureStandard.xml
← Back
<documentation title="Function Call Signature"> <standard> <![CDATA[ Checks that the function call format is correct. ]]> </standard> <code_comparison> <code title="Valid: Correct spacing is used around parentheses."> <![CDATA[ foo<em></em>(<em></em>$bar, $baz<em></em>); ]]> </code> <code title="Invalid: Incorrect spacing used, too much space around the parentheses."> <![CDATA[ foo<em> </em>(<em> </em>$bar, $baz<em> </em>); ]]> </code> </code_comparison> <code_comparison> <code title="Valid: Correct number of spaces used for indent in a multi-line function call."> <![CDATA[ foo( <em> </em>$bar, <em> </em>$baz ); ]]> </code> <code title="Invalid: Incorrect number of spaces used for indent in a multi-line function call."> <![CDATA[ foo( <em> </em>$bar, <em> </em>$baz ); ]]> </code> </code_comparison> <code_comparison> <code title="Valid: Closing parenthesis for a multi-line function call is on a new line after the last parameter."> <![CDATA[ foo( $bar, $baz <em>)</em>; ]]> </code> <code title="Invalid: Closing parenthesis for a multi-line function call is not on a new line after the last parameter."> <![CDATA[ foo( $bar, $baz<em>)</em>; ]]> </code> </code_comparison> <code_comparison> <code title="Valid: The first argument of a multi-line function call is on a new line."> <![CDATA[ foo( <em>$bar</em>, $baz ); ]]> </code> <code title="Invalid: The first argument of a multi-line function call is not on a new line."> <![CDATA[ foo(<em>$bar</em>, $baz ); ]]> </code> </code_comparison> <code_comparison> <code title="Valid: Only one argument per line in a multi-line function call."> <![CDATA[ foo( $bar, <em>$baz</em> ); ]]> </code> <code title="Invalid: Two or more arguments per line in a multi-line function call."> <![CDATA[ foo( $bar, <em>$baz</em> ); ]]> </code> </code_comparison> <code_comparison> <code title="Valid: No blank lines in a multi-line function call."> <![CDATA[ foo( $bar, $baz ); ]]> </code> <code title="Invalid: Blank line in multi-line function call."> <![CDATA[ foo( $bar, <em></em> $baz ); ]]> </code> </code_comparison> </documentation>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel