opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Generic
/
Tests
/
WhiteSpace
➕ New
📤 Upload
✎ Editing:
SpreadOperatorSpacingAfterUnitTest.1.inc.fixed
← Back
<?php function foo( &...$spread ) { bar( ...$spread ); bar( [ ...$foo ], ...array_values($keyedArray) ); } function bar( & ...$spread ) { bar(...$spread ); bar( [...$foo ],.../*comment*/array_values($keyedArray) ); } // phpcs:set Generic.WhiteSpace.SpreadOperatorSpacingAfter ignoreNewlines true bar(... $spread ); // phpcs:set Generic.WhiteSpace.SpreadOperatorSpacingAfter ignoreNewlines false // phpcs:set Generic.WhiteSpace.SpreadOperatorSpacingAfter spacing 1 function foo( &... $spread ) { bar( ... $spread ); bar( [ ... $foo ], ... array_values($keyedArray) ); } function bar( & ... $spread ) { bar(... $spread ); bar( [... $foo ],.../*comment*/array_values($keyedArray) ); } // phpcs:set Generic.WhiteSpace.SpreadOperatorSpacingAfter spacing 2 function foo( &... $spread ) { bar( ... $spread ); bar( [ ... $foo ], ... array_values($keyedArray) ); } function bar( & ... $spread ) { bar(... $spread ); bar( [... $foo ],.../*comment*/array_values($keyedArray) ); } // Ignore PHP 8.1 first class callable declarations. $map = array_map(strtolower(...), $map); // phpcs:set Generic.WhiteSpace.SpreadOperatorSpacingAfter spacing 0 // Ignore PHP 8.1 first class callable declarations. $map = array_map(strtolower( ... ), $map); bar(... /*comment*/$array);
💾 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