PHP 8.2.31
Preview: SpreadOperatorSpacingAfterStandard.xml Size: 922 B
//opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Docs/WhiteSpace/SpreadOperatorSpacingAfterStandard.xml

<documentation title="Spacing After Spread Operator">
    <standard>
    <![CDATA[
    There should be no space between the spread operator and the variable/function call it applies to.
    ]]>
    </standard>
    <code_comparison>
        <code title="Valid: No space between the spread operator and the variable/function call it applies to.">
        <![CDATA[
function foo(<em>&...$spread</em>) {
    bar(<em>...$spread</em>);

    bar(
        [<em>...$foo</em>],
        <em>...array_values($keyedArray)</em>
    );
}
        ]]>
        </code>
        <code title="Invalid: Space found between the spread operator and the variable/function call it applies to.">
        <![CDATA[
function bar(<em>... </em>$spread) {
    bar(<em>...
        </em>$spread
    );

    bar(
        [<em>... </em>$foo ],<em>.../*@*/</em>array_values($keyed)
    );
}
        ]]>
        </code>
    </code_comparison>
</documentation>

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
596 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
174 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
172 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
625 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
738 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
1.35 KB lrw-r--r-- 2025-11-04 16:30:35
Edit Download
582 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download
922 B lrw-r--r-- 2025-11-04 16:30:35
Edit Download

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