PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/ControlStructures/ControlSignatureStandard.xml

Recommend this page to a friend!
  Classes of Simo   CodeIgniter Plugin for Z-Ray   zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/ControlStructures/ControlSignatureStandard.xml   Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/ControlStructures/ControlSignatureStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CodeIgniter Plugin for Z-Ray
Show CodeIgniter application information in Z-Ray
Author: By
Last change:
Date: 1 year ago
Size: 974 bytes
 

Contents

Class file image Download
<documentation title="Control Structure Signatures"> <standard> <![CDATA[ Control structures should use one space around the parentheses in conditions. The opening brace should be preceded by one space and should be at the end of the line. ]]> </standard> <code_comparison> <code title="Valid: Correct spacing around the condition."> <![CDATA[ if<em> </em>($foo)<em> </em>{ } ]]> </code> <code title="Invalid: Incorrect spacing around the condition."> <![CDATA[ if<em></em>($foo)<em></em>{ } ]]> </code> </code_comparison> <code_comparison> <code title="Valid: Correct placement of the opening brace."> <![CDATA[ if ($foo) <em>{</em> } ]]> </code> <code title="Invalid: Incorrect placement of the opening brace on a new line."> <![CDATA[ if ($foo) <em>{</em> } ]]> </code> </code_comparison> </documentation>