Continuing to refactor the configuration class.
This commit is contained in:
@@ -62,7 +62,14 @@ class Config {
|
|||||||
|
|
||||||
static::load($module, $file);
|
static::load($module, $file);
|
||||||
|
|
||||||
(is_null($key)) ? static::$items[$module][$file] = $value : Arr::set(static::$items[$module][$file], $key, $value);
|
if (is_null($key))
|
||||||
|
{
|
||||||
|
static::$items[$module][$file] = $value;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Arr::set(static::$items[$module][$file], $key, $value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user