PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/ScopeIndentStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/ScopeIndentStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/ScopeIndentStandard.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: Yesterday
Size: 582 bytes
 

Contents

Class file image Download
<documentation title="Scope Indentation"> <standard> <![CDATA[ Indentation for control structures, classes, and functions should be 4 spaces per level. ]]> </standard> <code_comparison> <code title="Valid: 4 spaces are used to indent a control structure."> <![CDATA[ if ($test) { <em> </em>$var = 1; } ]]> </code> <code title="Invalid: 8 spaces are used to indent a control structure."> <![CDATA[ if ($test) { <em> </em>$var = 1; } ]]> </code> </code_comparison> </documentation>