PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml

Recommend this page to a friend!
  Classes of Simo   CodeIgniter Plugin for Z-Ray   zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml   Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.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: 581 bytes
 

Contents

Class file image Download
<documentation title="Control Structure Spacing"> <standard> <![CDATA[ Control Structures should have 0 spaces after opening parentheses and 0 spaces before closing parentheses. ]]> </standard> <code_comparison> <code title="Valid: Correct spacing."> <![CDATA[ if (<em></em>$foo<em></em>) { $var = 1; } ]]> </code> <code title="Invalid: Whitespace used inside the parentheses."> <![CDATA[ if (<em> </em>$foo<em> </em>) { $var = 1; } ]]> </code> </code_comparison> </documentation>