| @@ 69-71 (lines=3) @@ | ||
| 66 | $tokens = $phpcsFile->getTokens(); |
|
| 67 | ||
| 68 | $open = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr, null, false, null, true); |
|
| 69 | if ($open === false || isset($tokens[$open]['parenthesis_closer']) === false) { |
|
| 70 | return; |
|
| 71 | } |
|
| 72 | ||
| 73 | $close = $tokens[$open]['parenthesis_closer']; |
|
| 74 | $error = true; |
|
| @@ 95-97 (lines=3) @@ | ||
| 92 | ||
| 93 | // Deal with PHPCS 1.x which does not set the parenthesis properly for declare statements. |
|
| 94 | $openParenthesis = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($stackPtr + 1), null, false, null, true); |
|
| 95 | if ($openParenthesis === false || isset($tokens[$openParenthesis]['parenthesis_closer']) === false) { |
|
| 96 | return; |
|
| 97 | } |
|
| 98 | $closeParenthesis = $tokens[$openParenthesis]['parenthesis_closer']; |
|
| 99 | } |
|
| 100 | ||