Merge pull request #1124 from Block8/REBELinBLUE-patch-1

Fixes a issue with a double slash in the path meaning ignore doesn't …
This commit is contained in:
Dan Cryer 2015-11-12 17:47:16 +00:00
commit 6eb180ed5f

View file

@ -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;