vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/ControlStructures/InlineControlStructureSniff.php 1 location
|
@@ 235-239 (lines=5) @@
|
| 232 |
|
|
| 233 |
|
// Account for a comment on the end of the line. |
| 234 |
|
for ($endLine = $end; $endLine < $phpcsFile->numTokens; $endLine++) { |
| 235 |
|
if (isset($tokens[($endLine + 1)]) === false |
| 236 |
|
|| $tokens[$endLine]['line'] !== $tokens[($endLine + 1)]['line'] |
| 237 |
|
) { |
| 238 |
|
break; |
| 239 |
|
} |
| 240 |
|
} |
| 241 |
|
|
| 242 |
|
if ($tokens[$endLine]['code'] !== T_COMMENT) { |
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/WhiteSpace/SuperfluousWhitespaceSniff.php 1 location
|
@@ 200-204 (lines=5) @@
|
| 197 |
|
*/ |
| 198 |
|
|
| 199 |
|
// Ignore whitespace that is not at the end of a line. |
| 200 |
|
if (isset($tokens[($stackPtr + 1)]['line']) === true |
| 201 |
|
&& $tokens[($stackPtr + 1)]['line'] === $tokens[$stackPtr]['line'] |
| 202 |
|
) { |
| 203 |
|
return; |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
// Ignore blank lines if required. |
| 207 |
|
if ($this->ignoreBlankLines === true |