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

View File

@ -301,7 +301,7 @@ class Node extends Model
foreach ($statuses as $status) { foreach ($statuses as $status) {
$uuid = fluent($status)->get('configuration.uuid'); $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; return $statuses;