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

<documentation title="Scope Indentation">
    <standard>
    <![CDATA[
    Any scope openers except for switch statements should be indented 1 level.  This includes classes, functions, and control structures.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Consistent indentation level for scope.">
        <![CDATA[
function foo()
{
<em>    </em>if ($test) {
<em>        </em>$var = 1;
<em>    </em>}
}
        ]]>
        </code>
        <code title="Invalid: Indentation is not used for scope.">
        <![CDATA[
function foo()
{
<em></em>if ($test) {
<em></em>$var = 1;
<em></em>}
}
        ]]>
        </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).