PHP 8.2.31
Preview: ObjectOperatorIndentStandard.xml Size: 995 B
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/WhiteSpace/ObjectOperatorIndentStandard.xml

<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>

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
995 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
577 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
682 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).