PHP Classes

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

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: 2 days ago
Size: 1,459 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);