vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/Commenting/FunctionCommentSniff.php 1 location
|
@@ 382-386 (lines=5) @@
|
| 379 |
|
|
| 380 |
|
// Report missing comments. |
| 381 |
|
$diff = array_diff($realNames, $foundParams); |
| 382 |
|
foreach ($diff as $neededParam) { |
| 383 |
|
$error = 'Doc comment for parameter "%s" missing'; |
| 384 |
|
$data = array($neededParam); |
| 385 |
|
$phpcsFile->addError($error, $commentStart, 'MissingParamTag', $data); |
| 386 |
|
} |
| 387 |
|
|
| 388 |
|
}//end processParams() |
| 389 |
|
|
vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/Commenting/FunctionCommentSniff.php 1 location
|
@@ 587-591 (lines=5) @@
|
| 584 |
|
|
| 585 |
|
// Report missing comments. |
| 586 |
|
$diff = array_diff($realNames, $foundParams); |
| 587 |
|
foreach ($diff as $neededParam) { |
| 588 |
|
$error = 'Doc comment for parameter "%s" missing'; |
| 589 |
|
$data = array($neededParam); |
| 590 |
|
$phpcsFile->addError($error, $commentStart, 'MissingParamTag', $data); |
| 591 |
|
} |
| 592 |
|
|
| 593 |
|
}//end processParams() |
| 594 |
|
|