Fixes a issue with a double slash in the path meaning ignore doesn't work

This commit is contained in:
Stephen Ball 2015-11-12 17:42:00 +00:00
parent 8083e652eb
commit 736b898a9b

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;