From a2e97c69ac0491858958b914c83873f498173295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= Date: Wed, 17 Dec 2014 15:41:49 +0100 Subject: [PATCH] Prepend the build path to ignored directories in PhpParallelLint.php. Closes #710 --- PHPCI/Plugin/PhpParallelLint.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PHPCI/Plugin/PhpParallelLint.php b/PHPCI/Plugin/PhpParallelLint.php index 2b37b956..022d006f 100644 --- a/PHPCI/Plugin/PhpParallelLint.php +++ b/PHPCI/Plugin/PhpParallelLint.php @@ -105,10 +105,11 @@ class PhpParallelLint implements \PHPCI\Plugin */ protected function getFlags() { - $ignore = ''; - if (count($this->ignore)) { - $ignore = ' --exclude ' . implode(' --exclude ', $this->ignore); + $ignoreFlags = array(); + foreach ($this->ignore as $ignoreDir) { + $ignoreFlags[] = '--exclude "' . $this->phpci->buildPath . $ignoreDir . '"'; } + $ignore = implode(' ', $ignoreFlags); return array($ignore); }