annotate vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Functions/FunctionCallSignatureStandard.xml @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Docs/Functions/FunctionCallSignatureStandard.xml@4c8ae668cc8c
children
rev   line source
Chris@0 1 <documentation title="Function Calls">
Chris@0 2 <standard>
Chris@0 3 <![CDATA[
Chris@0 4 Functions should be called with no spaces between the function name, the opening parenthesis, and the first parameter; and no space between the last parameter, the closing parenthesis, and the semicolon.
Chris@0 5 ]]>
Chris@0 6 </standard>
Chris@0 7 <code_comparison>
Chris@0 8 <code title="Valid: spaces between parameters">
Chris@0 9 <![CDATA[
Chris@0 10 $var = foo($bar, $baz, $quux);
Chris@0 11 ]]>
Chris@0 12 </code>
Chris@0 13 <code title="Invalid: additional spaces used">
Chris@0 14 <![CDATA[
Chris@0 15 $var = foo<em> </em>(<em> </em>$bar, $baz, $quux<em> </em>)<em> </em>;
Chris@0 16 ]]>
Chris@0 17 </code>
Chris@0 18 </code_comparison>
Chris@0 19 </documentation>