PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.xml

Recommend this page to a friend!
  Classes of Simo   CodeIgniter Plugin for Z-Ray   zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.xml   Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/NamingConventions/UpperCaseConstantNameStandard.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: 618 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"> <![CDATA[ define('<em>FOO_CONSTANT</em>', 'foo'); class FooClass { const <em>FOO_CONSTANT</em> = 'foo'; } ]]> </code> <code title="Invalid: mixed case"> <![CDATA[ define('<em>Foo_Constant</em>', 'foo'); class FooClass { const <em>foo_constant</em> = 'foo'; } ]]> </code> </code_comparison> </documentation>