Mercurial > hg > isophonics-drupal-site
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/drupal/coder/coder_sniffer/Drupal/Docs/Functions/FunctionCallSignatureStandard.xml Wed Nov 29 16:09:58 2017 +0000 @@ -0,0 +1,19 @@ +<documentation title="Function Calls"> + <standard> + <![CDATA[ + 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. + ]]> + </standard> + <code_comparison> + <code title="Valid: spaces between parameters"> + <![CDATA[ +$var = foo($bar, $baz, $quux); + ]]> + </code> + <code title="Invalid: additional spaces used"> + <![CDATA[ +$var = foo<em> </em>(<em> </em>$bar, $baz, $quux<em> </em>)<em> </em>; + ]]> + </code> + </code_comparison> +</documentation>