opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Docs
/
WhiteSpace
➕ New
📤 Upload
✎ Editing:
SpreadOperatorSpacingAfterStandard.xml
← Back
<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>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel