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