Skip to content

Commit

Permalink
Merge branch 'phpdocblockchecker-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
corpsee committed Dec 5, 2018
2 parents e0fbaa9 + 813383f commit be3687b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -79,7 +79,7 @@
"phpmd/phpmd": "~2.6.0", "phpmd/phpmd": "~2.6.0",
"sebastian/phpcpd": "~2.0.0", "sebastian/phpcpd": "~2.0.0",
"squizlabs/php_codesniffer": "~3.2.0", "squizlabs/php_codesniffer": "~3.2.0",
"php-censor/phpdoc-checker": "~1.0", "php-censor/phpdoc-checker": "^1.0",
"phploc/phploc": "~4.0.0", "phploc/phploc": "~4.0.0",
"jakub-onderka/php-parallel-lint": "~0.9.0", "jakub-onderka/php-parallel-lint": "~0.9.0",
"sensiolabs/security-checker": "~5.0.0", "sensiolabs/security-checker": "~5.0.0",
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/Plugin/PhpDocblockChecker.php
Expand Up @@ -174,28 +174,28 @@ protected function reportErrors(array $output)
break; break;


case 'method': case 'method':
$message = 'Method ' . $error['class'] . ' is missing a docblock.'; $message = 'Method ' . $error['class'] . '::' . $error['method'] . ' is missing a docblock.';
$severity = BuildError::SEVERITY_NORMAL; $severity = BuildError::SEVERITY_NORMAL;
break; break;


case 'param-missing': case 'param-missing':
$message = $error['class'] . ' @param ' . $error['param'] . ' missing.'; $message = $error['class'] . '::' . $error['method'] . ' @param ' . $error['param'] . ' missing.';
$severity = BuildError::SEVERITY_LOW; $severity = BuildError::SEVERITY_LOW;
break; break;


case 'param-mismatch': case 'param-mismatch':
$message = $error['class'] . ' @param ' . $error['param'] . $message = $error['class'] . '::' . $error['method'] . ' @param ' . $error['param'] .
'(' . $error['doc-type'] . ') does not match method signature (' . $error['param-type'] . ')'; '(' . $error['doc-type'] . ') does not match method signature (' . $error['param-type'] . ')';
$severity = BuildError::SEVERITY_LOW; $severity = BuildError::SEVERITY_LOW;
break; break;


case 'return-missing': case 'return-missing':
$message = $error['class']. ' @return missing.'; $message = $error['class'] . '::' . $error['method'] . ' @return missing.';
$severity = BuildError::SEVERITY_LOW; $severity = BuildError::SEVERITY_LOW;
break; break;


case 'return-mismatch': case 'return-mismatch':
$message = $error['class'] . ' @return ' . $error['doc-type'] . $message = $error['class'] . '::' . $error['method'] . ' @return ' . $error['doc-type'] .
' does not match method signature (' . $error['return-type'] . ')'; ' does not match method signature (' . $error['return-type'] . ')';
$severity = BuildError::SEVERITY_LOW; $severity = BuildError::SEVERITY_LOW;
break; break;
Expand Down

0 comments on commit be3687b

Please sign in to comment.