PHPCompatibility/Sniffs/PHP/EmptyNonVariableSniff.php 1 location
|
@@ 89-91 (lines=3) @@
|
| 86 |
|
$tokens = $phpcsFile->getTokens(); |
| 87 |
|
|
| 88 |
|
$open = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr, null, false, null, true); |
| 89 |
|
if ($open === false || isset($tokens[$open]['parenthesis_closer']) === false) { |
| 90 |
|
return; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
$close = $tokens[$open]['parenthesis_closer']; |
| 94 |
|
|
PHPCompatibility/Sniffs/PHP/ForbiddenEmptyListAssignmentSniff.php 1 location
|
@@ 74-76 (lines=3) @@
|
| 71 |
|
$tokens = $phpcsFile->getTokens(); |
| 72 |
|
|
| 73 |
|
$open = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr, null, false, null, true); |
| 74 |
|
if ($open === false || isset($tokens[$open]['parenthesis_closer']) === false) { |
| 75 |
|
return; |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
$close = $tokens[$open]['parenthesis_closer']; |
| 79 |
|
$error = true; |
PHPCompatibility/Sniffs/PHP/NewExecutionDirectivesSniff.php 1 location
|
@@ 99-101 (lines=3) @@
|
| 96 |
|
|
| 97 |
|
// Deal with PHPCS 1.x which does not set the parenthesis properly for declare statements. |
| 98 |
|
$openParenthesis = $phpcsFile->findNext(T_OPEN_PARENTHESIS, ($stackPtr + 1), null, false, null, true); |
| 99 |
|
if ($openParenthesis === false || isset($tokens[$openParenthesis]['parenthesis_closer']) === false) { |
| 100 |
|
return; |
| 101 |
|
} |
| 102 |
|
$closeParenthesis = $tokens[$openParenthesis]['parenthesis_closer']; |
| 103 |
|
} |
| 104 |
|
|