PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/ControlStructures/ControlStructureSpacingStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 1 month 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>