| @@ 2532-2535 (lines=4) @@ | ||
| 2529 | unset($openers[$lastOpener]); |
|
| 2530 | ||
| 2531 | $level--; |
|
| 2532 | if (PHP_CODESNIFFER_VERBOSITY > 1) { |
|
| 2533 | echo str_repeat("\t", ($level + 2)); |
|
| 2534 | echo '* level decreased *'.PHP_EOL; |
|
| 2535 | } |
|
| 2536 | }//end if |
|
| 2537 | }//end if |
|
| 2538 | ||
| @@ 2540-2543 (lines=4) @@ | ||
| 2537 | }//end if |
|
| 2538 | ||
| 2539 | $level++; |
|
| 2540 | if (PHP_CODESNIFFER_VERBOSITY > 1) { |
|
| 2541 | echo str_repeat("\t", ($level + 1)); |
|
| 2542 | echo '* level increased *'.PHP_EOL; |
|
| 2543 | } |
|
| 2544 | ||
| 2545 | $conditions[$stackPtr] = $tokens[$stackPtr]['code']; |
|
| 2546 | if (PHP_CODESNIFFER_VERBOSITY > 1) { |
|
| @@ 2574-2577 (lines=4) @@ | ||
| 2571 | } |
|
| 2572 | ||
| 2573 | $oldCondition = array_pop($conditions); |
|
| 2574 | if (PHP_CODESNIFFER_VERBOSITY > 1) { |
|
| 2575 | echo str_repeat("\t", ($level + 1)); |
|
| 2576 | echo '* token '.token_name($oldCondition).' removed from conditions array *'.PHP_EOL; |
|
| 2577 | } |
|
| 2578 | ||
| 2579 | // Make sure this closer actually belongs to us. |
|
| 2580 | // Either the condition also has to think this is the |
|
| @@ 2627-2630 (lines=4) @@ | ||
| 2624 | }//end if |
|
| 2625 | ||
| 2626 | $level--; |
|
| 2627 | if (PHP_CODESNIFFER_VERBOSITY > 1) { |
|
| 2628 | echo str_repeat("\t", ($level + 2)); |
|
| 2629 | echo '* level decreased *'.PHP_EOL; |
|
| 2630 | } |
|
| 2631 | ||
| 2632 | $tokens[$i]['level'] = $level; |
|
| 2633 | $tokens[$i]['conditions'] = $conditions; |
|