diff --git a/PHPCI/Plugin/PhpMessDetector.php b/PHPCI/Plugin/PhpMessDetector.php index c6291a6e..66944ad6 100755 --- a/PHPCI/Plugin/PhpMessDetector.php +++ b/PHPCI/Plugin/PhpMessDetector.php @@ -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;