From 4120cb683d5f5f801741ae40548294443e2774cc Mon Sep 17 00:00:00 2001 From: Dan Cryer Date: Sat, 12 Oct 2013 09:50:15 +0100 Subject: [PATCH] Fixing PHPMD warnings count... Hopefully. --- PHPCI/Plugin/PhpMessDetector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;