From 148e4414fbbacdc60ceda84479f6c864a1f309c4 Mon Sep 17 00:00:00 2001 From: Stephen Ball Date: Thu, 12 Nov 2015 17:42:00 +0000 Subject: [PATCH] Fixes a issue with a double slash in the path meaning ignore doesn't work --- PHPCI/Plugin/Lint.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PHPCI/Plugin/Lint.php b/PHPCI/Plugin/Lint.php index 1de49e41..a7ddc55c 100644 --- a/PHPCI/Plugin/Lint.php +++ b/PHPCI/Plugin/Lint.php @@ -116,8 +116,7 @@ class Lint implements PHPCI\Plugin continue; } - $itemPath = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; - $itemPath .= ltrim($item->getFilename(), DIRECTORY_SEPARATOR); + $itemPath = $path . $item->getFilename(); if (in_array($itemPath, $this->ignore)) { continue;