PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.xml   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.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: 2 days ago
Size: 660 bytes
 

Contents

Class file image Download
<documentation title="Constant Names"> <standard> <![CDATA[ Constants should always be all-uppercase, with underscores to separate words. ]]> </standard> <code_comparison> <code title="Valid: All uppercase constant name."> <![CDATA[ define('<em>FOO_CONSTANT</em>', 'foo'); class FooClass { const <em>FOO_CONSTANT</em> = 'foo'; } ]]> </code> <code title="Invalid: Mixed case or lowercase constant name."> <![CDATA[ define('<em>Foo_Constant</em>', 'foo'); class FooClass { const <em>foo_constant</em> = 'foo'; } ]]> </code> </code_comparison> </documentation>