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 |
|
|
PHPCompatibility/Sniffs/PHP/ForbiddenEmptyListAssignmentSniff.php 1 location
|
@@ 88-90 (lines=3) @@
|
| 85 |
|
} else { |
| 86 |
|
// T_LIST. |
| 87 |
|
$open = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr, null, false, null, true); |
| 88 |
|
if ($open === false || isset($tokens[$open]['parenthesis_closer']) === false) { |
| 89 |
|
return; |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
$close = $tokens[$open]['parenthesis_closer']; |
| 93 |
|
} |
PHPCompatibility/Sniffs/PHP/EmptyNonVariableSniff.php 1 location
|
@@ 58-60 (lines=3) @@
|
| 55 |
|
$tokens = $phpcsFile->getTokens(); |
| 56 |
|
|
| 57 |
|
$open = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr, null, false, null, true); |
| 58 |
|
if ($open === false || isset($tokens[$open]['parenthesis_closer']) === false) { |
| 59 |
|
return; |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
$close = $tokens[$open]['parenthesis_closer']; |
| 63 |
|
|