vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php 1 location
|
@@ 258-262 (lines=5) @@
|
| 255 |
|
$end = $tokens[$commentStart]['comment_closer']; |
| 256 |
|
} |
| 257 |
|
|
| 258 |
|
for ($i = ($tag + 3); $i < $end; $i++) { |
| 259 |
|
if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) { |
| 260 |
|
$comment .= ' '.$tokens[$i]['content']; |
| 261 |
|
} |
| 262 |
|
} |
| 263 |
|
} else { |
| 264 |
|
$error = 'Missing parameter comment'; |
| 265 |
|
$phpcsFile->addError($error, $tag, 'MissingParamComment'); |
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php 1 location
|
@@ 212-216 (lines=5) @@
|
| 209 |
|
$end = $tokens[$commentStart]['comment_closer']; |
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
for ($i = ($tag + 3); $i < $end; $i++) { |
| 213 |
|
if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) { |
| 214 |
|
$comment .= ' '.$tokens[$i]['content']; |
| 215 |
|
} |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
// Starts with a capital letter and ends with a fullstop. |
| 219 |
|
$firstChar = $comment{0}; |