Refactor the configuration class for more simplicity.
This commit is contained in:
@@ -62,14 +62,7 @@ class Config {
|
|||||||
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user