PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/WhiteSpace/ObjectOperatorIndentStandard.xml

Recommend this page to a friend!
  Classes of Simo  >  CodeIgniter Plugin for Z-Ray  >  zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/WhiteSpace/ObjectOperatorIndentStandard.xml  >  Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/PEAR/Docs/WhiteSpace/ObjectOperatorIndentStandard.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: 995 bytes
 

Contents

Class file image Download
<documentation title="Object Operator Indentation">
    <standard>
    <![CDATA[
    Chained object operators when spread out over multiple lines should be the first thing on the line and be indented by 1 level.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Object operator at the start of a new line.">
        <![CDATA[
$foo
    <em>-></em>bar()
    <em>-></em>baz();
        ]]>
        </code>
        <code title="Invalid: Object operator at the end of the line.">
        <![CDATA[
$foo<em>-></em>
    bar()<em>-></em>
    baz();
        ]]>
        </code>
    </code_comparison>
    <code_comparison>
        <code title="Valid: Object operator indented correctly.">
        <![CDATA[
$foo
<em>    </em>->bar()
<em>    </em>->baz();
        ]]>
        </code>
        <code title="Invalid: Object operator not indented correctly.">
        <![CDATA[
$foo
<em></em>->bar()
<em></em>->baz();
        ]]>
        </code>
    </code_comparison>
</documentation>
For more information send a message to info at phpclasses dot org.