PHP Classes

File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Nolimitbuzz WP Theme   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Nolimitbuzz WP Theme
WordPress theme to used as start of new themes
Author: By
Last change:
Date: 7 days ago
Size: 1,458 bytes
 

Contents

Class file image Download
<?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);