Permalink
Browse files

Merge branch 'phpdocblockchecker-fix'

  • Loading branch information...
corpsee committed Dec 5, 2018
2 parents e0fbaa9 + 813383f commit be3687b3f96655907221a84ff1f7671640e0e57c
Showing with 12 additions and 12 deletions.
  1. +1 −1 composer.json
  2. +6 −6 composer.lock
  3. +5 −5 src/Plugin/PhpDocblockChecker.php
@@ -79,7 +79,7 @@
"phpmd/phpmd": "~2.6.0",
"sebastian/phpcpd": "~2.0.0",
"squizlabs/php_codesniffer": "~3.2.0",
"php-censor/phpdoc-checker": "~1.0",
"php-censor/phpdoc-checker": "^1.0",
"phploc/phploc": "~4.0.0",
"jakub-onderka/php-parallel-lint": "~0.9.0",
"sensiolabs/security-checker": "~5.0.0",

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -174,28 +174,28 @@ protected function reportErrors(array $output)
break;
case 'method':
$message = 'Method ' . $error['class'] . ' is missing a docblock.';
$message = 'Method ' . $error['class'] . '::' . $error['method'] . ' is missing a docblock.';
$severity = BuildError::SEVERITY_NORMAL;
break;
case 'param-missing':
$message = $error['class'] . ' @param ' . $error['param'] . ' missing.';
$message = $error['class'] . '::' . $error['method'] . ' @param ' . $error['param'] . ' missing.';
$severity = BuildError::SEVERITY_LOW;
break;
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'] . ')';
$severity = BuildError::SEVERITY_LOW;
break;
case 'return-missing':
$message = $error['class']. ' @return missing.';
$message = $error['class'] . '::' . $error['method'] . ' @return missing.';
$severity = BuildError::SEVERITY_LOW;
break;
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'] . ')';
$severity = BuildError::SEVERITY_LOW;
break;

0 comments on commit be3687b

Please sign in to comment.