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

<documentation title="Opening Function Brace Kerninghan Ritchie">
    <standard>
    <![CDATA[
    The function opening brace must be on the same line as the end of the function declaration, with
    exactly one space between the end of the declaration and the brace. The brace must be the last
    content on the line.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Opening brace on the same line.">
        <![CDATA[
function fooFunction($arg1, $arg2 = '')<em> {</em>
    // Do something.
}
        ]]>
        </code>
        <code title="Invalid: Opening brace on the next 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).