|
@@ 169-172 (lines=4) @@
|
| 166 |
|
|
| 167 |
|
$long = $phpcsFile->findNext($empty, $shortEnd + 1, $commentEnd - 1, true); |
| 168 |
|
if ($long !== false && $tokens[$long]['code'] === T_DOC_COMMENT_STRING) { |
| 169 |
|
if (preg_match('/^\p{Ll}/u', $tokens[$long]['content']) === 1) { |
| 170 |
|
$error = 'Doc comment long description must start with a capital letter'; |
| 171 |
|
$phpcsFile->addError($error, $long, self::CODE_LONG_NOT_CAPITAL); |
| 172 |
|
} |
| 173 |
|
} |
| 174 |
|
|
| 175 |
|
$long = $phpcsFile->findNext($empty, $shortEnd + 1, $commentEnd - 1, true); |
|
@@ 196-199 (lines=4) @@
|
| 193 |
|
} |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
if (preg_match('/^\p{Ll}/u', $tokens[$long]['content']) === 1) { |
| 197 |
|
$error = 'Doc comment long description must start with a capital letter'; |
| 198 |
|
$phpcsFile->addError($error, $long, self::CODE_LONG_NOT_CAPITAL); |
| 199 |
|
} |
| 200 |
|
} |
| 201 |
|
|
| 202 |
|
if (empty($tokens[$commentStart]['comment_tags']) === true) { |