PHP 8.2.31
Preview: MultiLineAssignmentStandard.xml Size: 894 B
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Docs/Formatting/MultiLineAssignmentStandard.xml

<documentation title="Multi-Line Assignment">
    <standard>
    <![CDATA[
    Multi-line assignment should have the equals sign be the first item on the second line indented correctly.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Assignment operator at the start of the second line.">
        <![CDATA[
$foo
    <em>=</em> $bar;
        ]]>
        </code>
        <code title="Invalid: Assignment operator at end of first line.">
        <![CDATA[
$foo <em>=</em>
    $bar;
        ]]>
        </code>
    </code_comparison>
    <code_comparison>
        <code title="Valid: Assignment operator indented one level.">
        <![CDATA[
$foo
<em>    </em>= $bar;
        ]]>
        </code>
        <code title="Invalid: Assignment operator not indented.">
        <![CDATA[
$foo
<em></em>= $bar;
        ]]>
        </code>
    </code_comparison>
</documentation>

Directory Contents

Dirs: 0 × Files: 1

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

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