Merge pull request #155 from AlexisFinn/patch-1
Correct issue #153: phpcs ignores 'path' setting
This commit is contained in:
commit
61f512fd22
|
@ -125,9 +125,9 @@ class PhpCodeSniffer extends Plugin implements ZeroConfigPluginInterface
|
|||
$this->encoding = ' --encoding=' . $options['encoding'];
|
||||
}
|
||||
|
||||
if (!empty($options['ignore'])) {
|
||||
if (!empty($options['ignore'])) {
|
||||
$this->ignore = (array)$options['ignore'];
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($options['standard'])) {
|
||||
$this->standard = $options['standard'];
|
||||
|
@ -144,6 +144,10 @@ class PhpCodeSniffer extends Plugin implements ZeroConfigPluginInterface
|
|||
if (isset($options['warning_severity']) && is_int($options['warning_severity'])) {
|
||||
$this->warningSeverity = $options['warning_severity'];
|
||||
}
|
||||
|
||||
if (isset($options['path'])) {
|
||||
$this->path = $options['path'];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue