PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/LowercaseDeclarationStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/LowercaseDeclarationStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Docs/ControlStructures/LowercaseDeclarationStandard.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: 562 bytes
 

Contents

Class file image Download
<documentation title="Lowercase Control Structure Keywords"> <standard> <![CDATA[ The PHP keywords if, else, elseif, foreach, for, do, switch, while, try, and catch should be lowercase. ]]> </standard> <code_comparison> <code title="Valid: Lowercase if keyword."> <![CDATA[ <em>if</em> ($foo) { $bar = true; } ]]> </code> <code title="Invalid: Uppercase if keyword."> <![CDATA[ <em>IF</em> ($foo) { $bar = true; } ]]> </code> </code_comparison> </documentation>