Mercurial > hg > isophonics-drupal-site
annotate vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Docs/CodeAnalysis/EmptyStatementStandard.xml @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <documentation title="Empty Statements"> |
Chris@0 | 2 <standard> |
Chris@0 | 3 <![CDATA[ |
Chris@0 | 4 Control Structures must have at least one statement inside of the body. |
Chris@0 | 5 ]]> |
Chris@0 | 6 </standard> |
Chris@0 | 7 <code_comparison> |
Chris@0 | 8 <code title="Valid: There is a statement inside the control structure."> |
Chris@0 | 9 <![CDATA[ |
Chris@0 | 10 if ($test) { |
Chris@0 | 11 $var = 1; |
Chris@0 | 12 } |
Chris@0 | 13 ]]> |
Chris@0 | 14 </code> |
Chris@0 | 15 <code title="Invalid: The control structure has no statements."> |
Chris@0 | 16 <![CDATA[ |
Chris@0 | 17 if ($test) { |
Chris@0 | 18 <em>// do nothing</em> |
Chris@0 | 19 } |
Chris@0 | 20 ]]> |
Chris@0 | 21 </code> |
Chris@0 | 22 </code_comparison> |
Chris@0 | 23 </documentation> |