public function setLinterConfigurationValue($key, $value) { foreach ($this->rules as $rule) { foreach ($rule->getLinterConfigurationOptions() as $k => $spec) { if ($k == $key) { return $rule->setLinterConfigurationValue($key, $value); } } } return parent::setLinterConfigurationValue($key, $value); }
public function setLinterConfigurationValue($key, $value) { switch ($key) { case 'phutil-xhpast.deprecated.functions': $this->setDeprecatedFunctions($value); return; case 'phutil-xhpast.dynamic-string.functions': $this->setDynamicStringFunctions($value); return; case 'phutil-xhpast.dynamic-string.classes': $this->setDynamicStringClasses($value); return; } return parent::setLinterConfigurationValue($key, $value); }
public function setLinterConfigurationValue($key, $value) { $matched = false; foreach ($this->rules as $rule) { foreach ($rule->getLinterConfigurationOptions() as $k => $spec) { if ($k == $key) { $matched = true; $rule->setLinterConfigurationValue($key, $value); } } } if ($matched) { return; } return parent::setLinterConfigurationValue($key, $value); }
public function setLinterConfigurationValue($key, $value) { switch ($key) { case 'xhpast.naminghook': $this->naminghook = $value; return; case 'xhpast.switchhook': $this->switchhook = $value; return; case 'xhpast.php-version': $this->version = $value; return; case 'xhpast.php-version.windows': $this->windowsVersion = $value; return; } return parent::setLinterConfigurationValue($key, $value); }