|
@@ 197-199 (lines=3) @@
|
| 194 |
|
private function checkBlankLines($commentEnd, $prev) |
| 195 |
|
{ |
| 196 |
|
// Check for additional blank lines at the end of the comment. |
| 197 |
|
if ($this->tokens[$prev]['line'] < ($this->tokens[$commentEnd]['line'] - 1)) { |
| 198 |
|
$this->phpcsFile->addError(self::MESSAGE_SPACING_AFTER, $commentEnd, self::CODE_SPACING_AFTER); |
| 199 |
|
} |
| 200 |
|
} |
| 201 |
|
|
| 202 |
|
/** |
|
@@ 237-239 (lines=3) @@
|
| 234 |
|
$long |
| 235 |
|
) { |
| 236 |
|
if ($long !== false && $this->tokens[$long]['code'] === T_DOC_COMMENT_STRING) { |
| 237 |
|
if ($this->tokens[$long]['line'] !== ($this->tokens[$shortEnd]['line'] + 2)) { |
| 238 |
|
$this->phpcsFile->addError(self::MESSAGE_SPACING_BETWEEN, $long, self::CODE_SPACING_BETWEEN); |
| 239 |
|
} |
| 240 |
|
|
| 241 |
|
if (preg_match('/^\p{Ll}/u', $this->tokens[$long]['content']) === 1) { |
| 242 |
|
$this->phpcsFile->addError(self::MESSAGE_LONG_NOT_CAPITAL, $long, self::CODE_LONG_NOT_CAPITAL); |