Mercurial > hg > isophonics-drupal-site
annotate vendor/drupal/coder/coder_sniffer/Drupal/Docs/Functions/FunctionCallSignatureStandard.xml @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 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> |