PHP 8.2.31
Preview: ClosingBraceStandard.xml Size: 788 B
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Docs/Classes/ClosingBraceStandard.xml

<documentation title="Closing Brace">
    <standard>
    <![CDATA[
    The closing brace of object-oriented constructs and functions must not be followed by any comment or statement on the same line.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Closing brace is the last content on the line.">
        <![CDATA[
class Foo
{
    // Class content.
}<em></em>

function bar()
{
    // Function content.
}<em></em>
        ]]>
        </code>
        <code title="Invalid: Comment or statement following the closing brace on the same line.">
        <![CDATA[
interface Foo2
{
    // Interface content.
} <em>echo 'Hello!';</em>

function bar()
{
    // Function content.
} <em>//end bar()</em>
        ]]>
        </code>
    </code_comparison>
</documentation>

Directory Contents

Dirs: 0 × Files: 3

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

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