public function __call($method, $args)
{
if (method_exists($this, 'set'.$method)) {
- return call_user_func_array(array($this, 'set'.$method), $args);
+ return \call_user_func_array(array($this, 'set'.$method), $args);
}
- throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', get_class($this), $method));
+ throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', \get_class($this), $method));
}
/**
*/
public static function processValue($value, $allowServices = false)
{
- if (is_array($value)) {
+ if (\is_array($value)) {
foreach ($value as $k => $v) {
$value[$k] = static::processValue($v, $allowServices);
}
}
}
- throw new InvalidArgumentException(sprintf('Cannot use values of type "%s" in service configuration files.', is_object($value) ? get_class($value) : gettype($value)));
+ throw new InvalidArgumentException(sprintf('Cannot use values of type "%s" in service configuration files.', \is_object($value) ? \get_class($value) : \gettype($value)));
}
}