mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-05-18 15:05:03 +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
|
||||
{
|
||||
static $settings = null;
|
||||
if(is_null($settings))
|
||||
if (is_null($settings)) {
|
||||
$settings = NexusDB::remember("nexus_settings_in_laravel", 600, function () {
|
||||
return self::getFromDb();
|
||||
});
|
||||
}
|
||||
if (is_null($name)) {
|
||||
return $settings;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user