Style fixes

This commit is contained in:
Lance Pioch 2024-04-29 14:29:33 -04:00
parent 7b66e1ce33
commit 8b060e8834
2 changed files with 5 additions and 9 deletions

View File

@ -452,14 +452,12 @@ class CreateServer extends CreateRecord
$fail($message);
}
},
])
;
]);
$select = Forms\Components\Select::make('variable_value')
->hidden($this->shouldHideComponent(...))
->options($this->getSelectOptionsFromRules(...))
->selectablePlaceholder(false)
;
->selectablePlaceholder(false);
$components = [$text, $select];
@ -476,8 +474,7 @@ class CreateServer extends CreateRecord
$environment = $get($envPath = '../../environment');
$environment[$get('env_variable')] = $state;
$set($envPath, $environment);
})
;
});
}
return $components;
@ -605,7 +602,6 @@ class CreateServer extends CreateRecord
->explode(',')
->each(fn ($value) => str($value)->trim())
->mapWithKeys(fn ($value) => [$value => $value])
->all()
;
->all();
}
}

View File

@ -301,7 +301,7 @@ class Node extends Model
foreach ($statuses as $status) {
$uuid = fluent($status)->get('configuration.uuid');
cache()->remember("servers.$uuid.container.status", now()->addMinute(), fn() => fluent($status)->get('state'));
cache()->remember("servers.$uuid.container.status", now()->addMinute(), fn () => fluent($status)->get('state'));
}
return $statuses;