PHP 8.2.31
Preview: FunctionCallSignatureStandard.xml Size: 2.54 KB
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/PSR2/Docs/Methods/FunctionCallSignatureStandard.xml

<documentation title="Function Call Signature">
    <standard>
    <![CDATA[
    Checks that the function call format is correct.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: Correct spacing is used around parentheses.">
        <![CDATA[
foo<em></em>(<em></em>$bar, $baz<em></em>);
        ]]>
        </code>
        <code title="Invalid: Incorrect spacing used, too much space around the parentheses.">
        <![CDATA[
foo<em> </em>(<em> </em>$bar, $baz<em> </em>);
        ]]>
        </code>
    </code_comparison>
    <code_comparison>
        <code title="Valid: Correct number of spaces used for indent in a multi-line function call.">
        <![CDATA[
foo(
<em>    </em>$bar,
<em>    </em>$baz
);
        ]]>
        </code>
        <code title="Invalid: Incorrect number of spaces used for indent in a multi-line function call.">
        <![CDATA[
foo(
<em>  </em>$bar,
<em>      </em>$baz
);
        ]]>
        </code>
    </code_comparison>
    <code_comparison>
        <code title="Valid: Closing parenthesis for a multi-line function call is on a new line after the last parameter.">
        <![CDATA[
foo(
    $bar,
    $baz
<em>)</em>;
        ]]>
        </code>
        <code title="Invalid: Closing parenthesis for a multi-line function call is not on a new line after the last parameter.">
        <![CDATA[
foo(
    $bar,
    $baz<em>)</em>;
        ]]>
        </code>
    </code_comparison>
    <code_comparison>
        <code title="Valid: The first argument of a multi-line function call is on a new line.">
        <![CDATA[
foo(
    <em>$bar</em>,
    $baz
);
        ]]>
        </code>
        <code title="Invalid: The first argument of a multi-line function call is not on a new line.">
        <![CDATA[
foo(<em>$bar</em>,
    $baz
);
        ]]>
        </code>
    </code_comparison>
    <code_comparison>
        <code title="Valid: Only one argument per line in a multi-line function call.">
        <![CDATA[
foo(
    $bar,
    <em>$baz</em>
);
        ]]>
        </code>
        <code title="Invalid: Two or more arguments per line in a multi-line function call.">
        <![CDATA[
foo(
    $bar, <em>$baz</em>
);
        ]]>
        </code>
    </code_comparison>
    <code_comparison>
        <code title="Valid: No blank lines in a multi-line function call.">
        <![CDATA[
foo(
    $bar,
    $baz
);
        ]]>
        </code>
        <code title="Invalid: Blank line in multi-line function call.">
        <![CDATA[
foo(
    $bar,
<em></em>
    $baz
);
        ]]>
        </code>
    </code_comparison>
</documentation>

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
2.54 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
602 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.17 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download

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