mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-30 17:17:22 +08:00
format code style
This commit is contained in:
@@ -30,10 +30,11 @@ class Setting extends NexusModel
|
|||||||
public static function get($name = null, $default = null): mixed
|
public static function get($name = null, $default = null): mixed
|
||||||
{
|
{
|
||||||
static $settings = null;
|
static $settings = null;
|
||||||
if(is_null($settings))
|
if (is_null($settings)) {
|
||||||
$settings = NexusDB::remember("nexus_settings_in_laravel", 600, function () {
|
$settings = NexusDB::remember("nexus_settings_in_laravel", 600, function () {
|
||||||
return self::getFromDb();
|
return self::getFromDb();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
if (is_null($name)) {
|
if (is_null($name)) {
|
||||||
return $settings;
|
return $settings;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user