Merge pull request #202 from rlindauer/master

Fix two bugs in PhpMessdetector Plugin
This commit is contained in:
Dan Cryer 2013-11-25 03:46:12 -08:00
commit 235ac26932

View file

@ -86,7 +86,7 @@ class PhpMessDetector implements \PHPCI\Plugin
}
foreach ($this->rules as &$rule) {
if ($rule[0] !== '/' && strpos($rule, '/') !== false) {
if (strpos($rule, '/') !== false) {
$rule = $this->phpci->buildPath . $rule;
}
}
@ -115,7 +115,7 @@ class PhpMessDetector implements \PHPCI\Plugin
protected function overrideSetting($options, $key)
{
if (isset($options[$key]) && is_array($options['key'])) {
if (isset($options[$key]) && is_array($options[$key])) {
$this->{$key} = $options[$key];
}
}