PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/WhiteSpace/ScopeIndentStandard.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/WhiteSpace/ScopeIndentStandard.xml   Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/WhiteSpace/ScopeIndentStandard.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: 2 years ago
Size: 682 bytes
 

Contents

Class file image Download
<documentation title="Scope Indentation"> <standard> <![CDATA[ Any scope openers except for switch statements should be indented 1 level. This includes classes, functions, and control structures. ]]> </standard> <code_comparison> <code title="Valid: Consistent indentation level for scope."> <![CDATA[ function foo() { <em> </em>if ($test) { <em> </em>$var = 1; <em> </em>} } ]]> </code> <code title="Invalid: Indentation is not used for scope."> <![CDATA[ function foo() { <em></em>if ($test) { <em></em>$var = 1; <em></em>} } ]]> </code> </code_comparison> </documentation>