@@ 212-214 (lines=3) @@ | ||
209 | */ |
|
210 | private function checkCapitalLetter($shortContent, $long) |
|
211 | { |
|
212 | if (preg_match('/^\p{Ll}/u', $shortContent) === 1) { |
|
213 | $this->phpcsFile->addError(self::MESSAGE_SHORT_NOT_CAPITAL, $this->short, self::CODE_SHORT_NOT_CAPITAL); |
|
214 | } |
|
215 | ||
216 | if ($long !== false |
|
217 | && $this->tokens[$long]['code'] === T_DOC_COMMENT_STRING && preg_match(' |
|
@@ 295-297 (lines=3) @@ | ||
292 | /** @var int $shortEnd */ |
|
293 | $shortEnd = $this->short; |
|
294 | ||
295 | if (preg_match('/^\p{Ll}/u', $shortContent) === 1) { |
|
296 | $this->phpcsFile->addError(self::MESSAGE_SHORT_NOT_CAPITAL, $this->short, self::CODE_SHORT_NOT_CAPITAL); |
|
297 | } |
|
298 | ||
299 | $long = $this->phpcsFile->findNext($this->empty, $shortEnd + 1, $commentEnd - 1, true); |
|
300 |