Refactor the configuration class for more simplicity.
This commit is contained in:
parent
81a89604f9
commit
551cffcdbc
|
@ -62,14 +62,7 @@ public static function set($key, $value)
|
||||||
|
|
||||||
static::load($module, $file);
|
static::load($module, $file);
|
||||||
|
|
||||||
if (is_null($key))
|
Arr::set(static::$items[$module][$file], $key, $value);
|
||||||
{
|
|
||||||
static::$items[$module][$file] = $value;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Arr::set(static::$items[$module][$file], $key, $value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue