PHP Classes

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

Recommend this page to a friend!
  Classes of milenmk   Simple PHP Password Manager   vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.inc   Download  
File: vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.inc
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Password Manager
Application to store and retrieve user password
Author: By
Last change:
Date: 1 year ago
Size: 1,356 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) ); } // phpcs:set Generic.WhiteSpace.SpreadOperatorSpacingAfter spacing 0 // Intentional parse error. This has to be the last test in the file. function bar( ...