vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/Commenting/DocCommentSniff.php 1 location
|
@@ 275-277 (lines=3) @@
|
| 272 |
|
|
| 273 |
|
// Check for a value. No value means no padding needed. |
| 274 |
|
$string = $phpcsFile->findNext(T_DOC_COMMENT_STRING, $tag, $commentEnd); |
| 275 |
|
if ($string !== false && $tokens[$string]['line'] === $tokens[$tag]['line']) { |
| 276 |
|
$paddings[$tag] = strlen($tokens[($tag + 1)]['content']); |
| 277 |
|
} |
| 278 |
|
} |
| 279 |
|
|
| 280 |
|
// Check that there was single blank line after the tag block |
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php 1 location
|
@@ 312-316 (lines=5) @@
|
| 309 |
|
} |
| 310 |
|
} else { |
| 311 |
|
$prev = $phpcsFile->findPrevious(T_WHITESPACE, ($className - 1), $implements); |
| 312 |
|
if ($tokens[$prev]['line'] !== $tokens[$className]['line']) { |
| 313 |
|
$found = 0; |
| 314 |
|
} else { |
| 315 |
|
$found = strlen($tokens[$prev]['content']); |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
$expected = ($classIndent + $this->indent); |
| 319 |
|
if ($found !== $expected) { |