vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Arrays/ArrayDeclarationSniff.php 1 location
|
@@ 352-356 (lines=5) @@
|
| 349 |
|
$indices = array(); |
| 350 |
|
$maxLength = 0; |
| 351 |
|
|
| 352 |
|
if ($tokens[$stackPtr]['code'] === T_ARRAY) { |
| 353 |
|
$lastToken = $tokens[$stackPtr]['parenthesis_opener']; |
| 354 |
|
} else { |
| 355 |
|
$lastToken = $stackPtr; |
| 356 |
|
} |
| 357 |
|
|
| 358 |
|
// Find all the double arrows that reside in this scope. |
| 359 |
|
for ($nextToken = ($stackPtr + 1); $nextToken < $arrayEnd; $nextToken++) { |
vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayDeclarationSniff.php 1 location
|
@@ 138-142 (lines=5) @@
|
| 135 |
|
$indices = array(); |
| 136 |
|
$maxLength = 0; |
| 137 |
|
|
| 138 |
|
if ( T_ARRAY === $tokens[ $stackPtr ]['code'] ) { |
| 139 |
|
$lastToken = $tokens[ $stackPtr ]['parenthesis_opener']; |
| 140 |
|
} else { |
| 141 |
|
$lastToken = $stackPtr; |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
// Find all the double arrows that reside in this scope. |
| 145 |
|
for ( $nextToken = ( $stackPtr + 1 ); $nextToken < $arrayEnd; $nextToken++ ) { |