More improvements to the configuration class.
This commit is contained in:
parent
551cffcdbc
commit
7b0495e864
|
@ -42,9 +42,7 @@ public static function get($key, $default = null)
|
|||
|
||||
static::load($module, $file);
|
||||
|
||||
if (is_null($key)) return static::$items[$module][$file];
|
||||
|
||||
return Arr::get(static::$items[$module][$file], $key, $default);
|
||||
return (is_null($key)) ? static::$items[$module][$file] : Arr::get(static::$items[$module][$file], $key, $default);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue