vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php 2 locations
|
@@ 143-147 (lines=5) @@
|
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
$phpcsFile->fixer->beginChangeset(); |
| 143 |
|
if (isset($tokens[$stackPtr]['parenthesis_closer']) === true) { |
| 144 |
|
$closer = $tokens[$stackPtr]['parenthesis_closer']; |
| 145 |
|
} else { |
| 146 |
|
$closer = $stackPtr; |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
if ($tokens[($closer + 1)]['code'] === T_WHITESPACE |
| 150 |
|
|| $tokens[($closer + 1)]['code'] === T_SEMICOLON |
|
@@ 212-216 (lines=5) @@
|
| 209 |
|
} |
| 210 |
|
}//end if |
| 211 |
|
|
| 212 |
|
if (isset($tokens[$end]['parenthesis_closer']) === true) { |
| 213 |
|
$end = $tokens[$end]['parenthesis_closer']; |
| 214 |
|
$lastNonEmpty = $end; |
| 215 |
|
continue; |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
if ($tokens[$end]['code'] !== T_WHITESPACE) { |
| 219 |
|
$lastNonEmpty = $end; |
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Operators/ComparisonOperatorUsageSniff.php 1 location
|
@@ 176-183 (lines=8) @@
|
| 173 |
|
if ($start === false || $end === false) { |
| 174 |
|
return; |
| 175 |
|
} |
| 176 |
|
} else { |
| 177 |
|
if (isset($tokens[$stackPtr]['parenthesis_opener']) === false) { |
| 178 |
|
return; |
| 179 |
|
} |
| 180 |
|
|
| 181 |
|
$start = $tokens[$stackPtr]['parenthesis_opener']; |
| 182 |
|
$end = $tokens[$stackPtr]['parenthesis_closer']; |
| 183 |
|
}//end if |
| 184 |
|
|
| 185 |
|
$requiredOps = 0; |
| 186 |
|
$foundOps = 0; |
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/FunctionSpacingSniff.php 1 location
|
@@ 72-77 (lines=6) @@
|
| 69 |
|
after the function. |
| 70 |
|
*/ |
| 71 |
|
|
| 72 |
|
if (isset($tokens[$stackPtr]['scope_closer']) === false) { |
| 73 |
|
// Must be an interface method, so the closer is the semicolon. |
| 74 |
|
$closer = $phpcsFile->findNext(T_SEMICOLON, $stackPtr); |
| 75 |
|
} else { |
| 76 |
|
$closer = $tokens[$stackPtr]['scope_closer']; |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
// Allow for comments on the same line as the closer. |
| 80 |
|
for ($nextLineToken = ($closer + 1); $nextLineToken < $phpcsFile->numTokens; $nextLineToken++) { |