comparison vendor/drupal/coder/coder_sniffer/Drupal/Docs/Functions/FunctionCallSignatureStandard.xml @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <documentation title="Function Calls">
2 <standard>
3 <![CDATA[
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.
5 ]]>
6 </standard>
7 <code_comparison>
8 <code title="Valid: spaces between parameters">
9 <![CDATA[
10 $var = foo($bar, $baz, $quux);
11 ]]>
12 </code>
13 <code title="Invalid: additional spaces used">
14 <![CDATA[
15 $var = foo<em> </em>(<em> </em>$bar, $baz, $quux<em> </em>)<em> </em>;
16 ]]>
17 </code>
18 </code_comparison>
19 </documentation>