|
@@ 212-215 (lines=4) @@
|
| 209 |
|
|
| 210 |
|
$long = $phpcsFile->findNext($empty, $shortEnd + 1, $commentEnd - 1, true); |
| 211 |
|
if ($long !== false && $tokens[$long]['code'] === T_DOC_COMMENT_STRING) { |
| 212 |
|
if (preg_match('/^\p{Ll}/u', $tokens[$long]['content']) === 1) { |
| 213 |
|
$error = self::MESSAGE_LONG_NOT_CAPITAL; |
| 214 |
|
$phpcsFile->addError($error, $long, self::CODE_LONG_NOT_CAPITAL); |
| 215 |
|
} |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
$long = $phpcsFile->findNext($empty, $shortEnd + 1, $commentEnd - 1, true); |
|
@@ 225-228 (lines=4) @@
|
| 222 |
|
$phpcsFile->addError($error, $long, self::CODE_SPACING_BETWEEN); |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
if (preg_match('/^\p{Ll}/u', $tokens[$long]['content']) === 1) { |
| 226 |
|
$error = self::MESSAGE_LONG_NOT_CAPITAL; |
| 227 |
|
$phpcsFile->addError($error, $long, self::CODE_LONG_NOT_CAPITAL); |
| 228 |
|
} |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
if (empty($tokens[$commentStart]['comment_tags'])) { |