@@ 241-243 (lines=3) @@ | ||
238 | */ |
|
239 | private function checkCapitalLetter($shortContent, $long) |
|
240 | { |
|
241 | if (preg_match('/^\p{Ll}/u', $shortContent) === 1) { |
|
242 | $this->phpcsFile->addError(self::MESSAGE_SHORT_NOT_CAPITAL, $this->short, self::CODE_SHORT_NOT_CAPITAL); |
|
243 | } |
|
244 | ||
245 | if ($long !== false |
|
246 | && $this->tokens[$long]['code'] === T_DOC_COMMENT_STRING && preg_match(' |
|
@@ 324-326 (lines=3) @@ | ||
321 | /** @var int $shortEnd */ |
|
322 | $shortEnd = $this->short; |
|
323 | ||
324 | if (preg_match('/^\p{Ll}/u', $shortContent) === 1) { |
|
325 | $this->phpcsFile->addError(self::MESSAGE_SHORT_NOT_CAPITAL, $this->short, self::CODE_SHORT_NOT_CAPITAL); |
|
326 | } |
|
327 | ||
328 | $long = $this->phpcsFile->findNext($this->empty, $shortEnd + 1, $commentEnd - 1, true); |
|
329 |