@@ 228-230 (lines=3) @@ | ||
225 | private function checkBlankLines($commentEnd, $prev) |
|
226 | { |
|
227 | // Check for additional blank lines at the end of the comment. |
|
228 | if ($this->tokens[$prev]['line'] < ($this->tokens[$commentEnd]['line'] - 1)) { |
|
229 | $this->phpcsFile->addError(self::MESSAGE_SPACING_AFTER, $commentEnd, self::CODE_SPACING_AFTER); |
|
230 | } |
|
231 | } |
|
232 | ||
233 | /** |
|
@@ 268-270 (lines=3) @@ | ||
265 | $long |
|
266 | ) { |
|
267 | if ($long !== false && $this->tokens[$long]['code'] === T_DOC_COMMENT_STRING) { |
|
268 | if ($this->tokens[$long]['line'] !== ($this->tokens[$shortEnd]['line'] + 2)) { |
|
269 | $this->phpcsFile->addError(self::MESSAGE_SPACING_BETWEEN, $long, self::CODE_SPACING_BETWEEN); |
|
270 | } |
|
271 | ||
272 | if (preg_match('/^\p{Ll}/u', $this->tokens[$long]['content']) === 1) { |
|
273 | $this->phpcsFile->addError(self::MESSAGE_LONG_NOT_CAPITAL, $long, self::CODE_LONG_NOT_CAPITAL); |