PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Zend/Docs/NamingConventions/ValidVariableNameStandard.xml

Recommend this page to a friend!
  Classes of Simo  >  CodeIgniter Plugin for Z-Ray  >  zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Zend/Docs/NamingConventions/ValidVariableNameStandard.xml  >  Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Zend/Docs/NamingConventions/ValidVariableNameStandard.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: 3 months ago
Size: 1,001 bytes
 

Contents

Class file image Download
<documentation title="Variable Names">
    <standard>
    <![CDATA[
    Variable names should be camelCased with the first letter lowercase.  Private and protected member variables should begin with an underscore
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: A multi-word variable uses camel casing.">
        <![CDATA[
<em>$testNumber</em> = 1;
        ]]>
        </code>
        <code title="Invalid: A multi-word variable uses underscores and initial capitalization.">
        <![CDATA[
<em>$Test_Number</em> = 1;
        ]]>
        </code>
    </code_comparison>
    <code_comparison>
        <code title="Valid: A private member variable begins with an underscore.">
        <![CDATA[
class Foo
{
    private $<em>_</em>bar;
}
        ]]>
        </code>
        <code title="Invalid: A private member variable does not begin with an underscore.">
        <![CDATA[
class Foo
{
    private $bar;
}
        ]]>
        </code>
    </code_comparison>
</documentation>
For more information send a message to info at phpclasses dot org.