| @@ 789-793 (lines=5) @@ | ||
| 786 | $nextComma = false; |
|
| 787 | for ($i = $index['value']; $i < $arrayEnd; $i++) { |
|
| 788 | // Skip bracketed statements, like function calls. |
|
| 789 | if ($tokens[$i]['code'] === T_OPEN_PARENTHESIS) { |
|
| 790 | $i = $tokens[$i]['parenthesis_closer']; |
|
| 791 | $valueLine = $tokens[$i]['line']; |
|
| 792 | continue; |
|
| 793 | } |
|
| 794 | ||
| 795 | if ($tokens[$i]['code'] === T_ARRAY) { |
|
| 796 | $i = $tokens[$tokens[$i]['parenthesis_opener']]['parenthesis_closer']; |
|
| @@ 809-813 (lines=5) @@ | ||
| 806 | continue; |
|
| 807 | } |
|
| 808 | ||
| 809 | if ($tokens[$i]['code'] === T_OPEN_SHORT_ARRAY) { |
|
| 810 | $i = $tokens[$i]['bracket_closer']; |
|
| 811 | $valueLine = $tokens[$i]['line']; |
|
| 812 | continue; |
|
| 813 | } |
|
| 814 | ||
| 815 | if ($tokens[$i]['code'] === T_CLOSURE) { |
|
| 816 | $i = $tokens[$i]['scope_closer']; |
|
| @@ 815-819 (lines=5) @@ | ||
| 812 | continue; |
|
| 813 | } |
|
| 814 | ||
| 815 | if ($tokens[$i]['code'] === T_CLOSURE) { |
|
| 816 | $i = $tokens[$i]['scope_closer']; |
|
| 817 | $valueLine = $tokens[$i]['line']; |
|
| 818 | continue; |
|
| 819 | } |
|
| 820 | ||
| 821 | if ($tokens[$i]['code'] === T_COMMA) { |
|
| 822 | $nextComma = $i; |
|
| @@ 461-465 (lines=5) @@ | ||
| 458 | $nextComma = false; |
|
| 459 | for ( $i = $index['value']; $i < $arrayEnd; $i++ ) { |
|
| 460 | // Skip bracketed statements, like function calls. |
|
| 461 | if ( T_OPEN_PARENTHESIS === $tokens[ $i ]['code'] ) { |
|
| 462 | $i = $tokens[ $i ]['parenthesis_closer']; |
|
| 463 | $valueLine = $tokens[ $i ]['line']; |
|
| 464 | continue; |
|
| 465 | } |
|
| 466 | ||
| 467 | if ( T_ARRAY === $tokens[ $i ]['code'] ) { |
|
| 468 | $i = $tokens[ $tokens[ $i ]['parenthesis_opener'] ]['parenthesis_closer']; |
|
| @@ 473-477 (lines=5) @@ | ||
| 470 | continue; |
|
| 471 | } |
|
| 472 | ||
| 473 | if ( T_OPEN_SHORT_ARRAY === $tokens[ $i ]['code'] ) { |
|
| 474 | $i = $tokens[ $i ]['bracket_closer']; |
|
| 475 | $valueLine = $tokens[ $i ]['line']; |
|
| 476 | continue; |
|
| 477 | } |
|
| 478 | ||
| 479 | if ( T_CLOSURE === $tokens[ $i ]['code'] ) { |
|
| 480 | $i = $tokens[ $i ]['scope_closer']; |
|
| @@ 479-483 (lines=5) @@ | ||
| 476 | continue; |
|
| 477 | } |
|
| 478 | ||
| 479 | if ( T_CLOSURE === $tokens[ $i ]['code'] ) { |
|
| 480 | $i = $tokens[ $i ]['scope_closer']; |
|
| 481 | $valueLine = $tokens[ $i ]['line']; |
|
| 482 | continue; |
|
| 483 | } |
|
| 484 | ||
| 485 | if ( T_COMMA === $tokens[ $i ]['code'] ) { |
|
| 486 | $nextComma = $i; |
|