Fixing PHPMD warnings count... Hopefully.
This commit is contained in:
parent
17a19c0707
commit
4120cb683d
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ class PhpMessDetector implements \PHPCI\Plugin
|
|||
$suffixes
|
||||
);
|
||||
|
||||
$errors = count(array_filter(explode(PHP_EOL, $this->phpci->getLastOutput())));
|
||||
$errors = count(array_filter(explode(PHP_EOL, trim($this->phpci->getLastOutput()))));
|
||||
$this->build->storeMeta('phpmd-warnings', $errors);
|
||||
|
||||
return $success;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue