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/EmptyNonVariableSniff.php 1 location
|
@@ 91-93 (lines=3) @@
|
88 |
|
$tokens = $phpcsFile->getTokens(); |
89 |
|
|
90 |
|
$open = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr, null, false, null, true); |
91 |
|
if ($open === false || isset($tokens[$open]['parenthesis_closer']) === false) { |
92 |
|
return; |
93 |
|
} |
94 |
|
|
95 |
|
$close = $tokens[$open]['parenthesis_closer']; |
96 |
|
|
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 |
|
} |