@@ 513-522 (lines=10) @@ | ||
510 | } |
|
511 | ||
512 | if ($lastAddedStackPtr !== null) { |
|
513 | if (($tokens[$next]['code'] === T_OPEN_CURLY_BRACKET |
|
514 | || $tokens[$next]['code'] === T_CLOSE_CURLY_BRACKET) |
|
515 | && isset($tokens[$next]['scope_condition']) === true |
|
516 | && $tokens[$next]['scope_condition'] > $lastAddedStackPtr |
|
517 | ) { |
|
518 | // This is a brace, but the owner of it is after the current |
|
519 | // token, which means it does not belong to any token in |
|
520 | // our pattern. This means the pattern is not for us. |
|
521 | return false; |
|
522 | } |
|
523 | ||
524 | if (($tokens[$next]['code'] === T_OPEN_PARENTHESIS |
|
525 | || $tokens[$next]['code'] === T_CLOSE_PARENTHESIS) |
|
@@ 524-533 (lines=10) @@ | ||
521 | return false; |
|
522 | } |
|
523 | ||
524 | if (($tokens[$next]['code'] === T_OPEN_PARENTHESIS |
|
525 | || $tokens[$next]['code'] === T_CLOSE_PARENTHESIS) |
|
526 | && isset($tokens[$next]['parenthesis_owner']) === true |
|
527 | && $tokens[$next]['parenthesis_owner'] > $lastAddedStackPtr |
|
528 | ) { |
|
529 | // This is a bracket, but the owner of it is after the current |
|
530 | // token, which means it does not belong to any token in |
|
531 | // our pattern. This means the pattern is not for us. |
|
532 | return false; |
|
533 | } |
|
534 | }//end if |
|
535 | ||
536 | // If we skipped past some whitespace tokens, then add them |