diff --git a/src/Definition/ClassDefinition.php b/src/Definition/ClassDefinition.php index 45df9584..7cf2abbf 100644 --- a/src/Definition/ClassDefinition.php +++ b/src/Definition/ClassDefinition.php @@ -187,9 +187,9 @@ public function hasMethod($class, $method) if (is_array($this->methods)) { return array_key_exists($method, $this->methods); - } else { - return null; } + + return null; } /** diff --git a/src/InstanceManager.php b/src/InstanceManager.php index 7618a847..6d3f4cef 100644 --- a/src/InstanceManager.php +++ b/src/InstanceManager.php @@ -335,9 +335,9 @@ public function getConfig($aliasOrClass) $key = ($this->hasAlias($aliasOrClass)) ? 'alias:' . $this->getBaseAlias($aliasOrClass) : $aliasOrClass; if (isset($this->configurations[$key])) { return $this->configurations[$key]; - } else { - return $this->configurationTemplate; } + + return $this->configurationTemplate; } /**