mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
format code style
This commit is contained in:
@@ -29,11 +29,12 @@ class Setting extends NexusModel
|
||||
*/
|
||||
public static function get($name = null, $default = null): mixed
|
||||
{
|
||||
static $settings=null;
|
||||
if(is_null($settings))
|
||||
$settings = NexusDB::remember("nexus_settings_in_laravel", 600, function () {
|
||||
return self::getFromDb();
|
||||
});
|
||||
static $settings = null;
|
||||
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