Fix for ignores in PHPCS
This commit is contained in:
parent
645936f309
commit
11932e4b9c
|
@ -33,12 +33,6 @@ class PhpCodeSniffer implements \PHPCI\Plugin
|
|||
$ignore = '';
|
||||
|
||||
if (count($this->phpci->ignore)) {
|
||||
$map = function ($item) {
|
||||
return substr($item, -1) == '/' ? $item . '*' : $item . '/*';
|
||||
};
|
||||
|
||||
$ignore = array_map($map, $this->phpci->ignore);
|
||||
|
||||
$ignore = ' --ignore=' . implode(',', $ignore);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue