PHP 8.2.31
Preview: OpeningFunctionBraceBsdAllmanStandard.xml Size: 800 B
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/Functions/OpeningFunctionBraceBsdAllmanStandard.xml

<documentation title="Opening Function Brace Bsd Allman">
    <standard>
    <![CDATA[
    Function declarations must follow the "BSD/Allman style". The opening brace is on the line
    following the function declaration and is indented to the same column as the start of the
    function declaration. The brace must be the last content on the line.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Opening brace on the next line.">
        <![CDATA[
function fooFunction($arg1, $arg2 = '')
<em>{</em>
    // Do something
}
        ]]>
        </code>
        <code title="Invalid: Opening brace on the same line.">
        <![CDATA[
function fooFunction($arg1, $arg2 = '') <em>{</em>
    // Do something
}
        ]]>
        </code>
    </code_comparison>
</documentation>

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
665 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
617 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
800 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
772 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download

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