@@ 187-193 (lines=7) @@ | ||
184 | } |
|
185 | ||
186 | // Check for a comment description. |
|
187 | if ($tokens[$short]['code'] !== T_DOC_COMMENT_STRING |
|
188 | && $tokens[$short]['content'] !== '@inheritdoc' |
|
189 | && $tokens[$short]['content'] !== '@var') { |
|
190 | $error = self::MESSAGE_MISSING_SHORT; |
|
191 | $phpcsFile->addError($error, $stackPtr, self::CODE_MISSING_SHORT); |
|
192 | return; |
|
193 | } |
|
194 | ||
195 | // No extra newline before short description. |
|
196 | if ($tokens[$short]['line'] !== ($tokens[$stackPtr]['line'] + 1) && $tokens[$short]['content'] !== '@var') { |
|
@@ 196-199 (lines=4) @@ | ||
193 | } |
|
194 | ||
195 | // No extra newline before short description. |
|
196 | if ($tokens[$short]['line'] !== ($tokens[$stackPtr]['line'] + 1) && $tokens[$short]['content'] !== '@var') { |
|
197 | $error = self::MESSAGE_CODE_SPACING_BEFORE; |
|
198 | $phpcsFile->addError($error, $short, self::CODE_SPACING_BEFORE_SHORT); |
|
199 | } |
|
200 | ||
201 | $shortContent = $tokens[$short]['content']; |
|
202 | /** @var int $shortEnd */ |