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 b24b01ec65
commit 148e4414fb

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;