PHP 8.2.31
Preview: OpeningBraceSameLineStandard.xml Size: 901 B
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Classes/OpeningBraceSameLineStandard.xml

<documentation title="Opening Brace on Same Line">
    <standard>
    <![CDATA[
    The opening brace of a class must be on the same line after the definition and must be the last thing on that line.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Opening brace on the same line.">
        <![CDATA[
class Foo <em>{</em>
}
        ]]>
        </code>
        <code title="Invalid: Opening brace on the next line.">
        <![CDATA[
class Foo
<em>{</em>
}
        ]]>
        </code>
    </code_comparison>
    <code_comparison>
        <code title="Valid: Opening brace is the last thing on the line.">
        <![CDATA[
class Foo <em>{</em>
}
        ]]>
        </code>
        <code title="Invalid: Opening brace not last thing on the line.">
        <![CDATA[
class Foo {<em> // Start of class.</em>
}
        ]]>
        </code>
    </code_comparison>
</documentation>

Directory Contents

Dirs: 0 × Files: 2

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

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