Continuing to refactor the configuration class.
This commit is contained in:
parent
d9b7b7dc52
commit
de38744d78
|
|
@ -62,7 +62,14 @@ public static function set($key, $value)
|
||||||
|
|
||||||
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue