style: run rector
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
idevakk
2026-03-03 01:54:26 +05:30
parent ba8d5d027b
commit 083bf63e18
2 changed files with 3 additions and 3 deletions

View File

@@ -193,7 +193,7 @@ class PanelSettings extends AbstractPageSettings
->rgb() ->rgb()
->regex('/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/') ->regex('/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/')
->live() ->live()
->afterStateUpdated(function ($state, callable $set): void { ->afterStateUpdated(function (string $state, callable $set): void {
$shades = ColorHelper::generateOklchFromRGBShades($state); $shades = ColorHelper::generateOklchFromRGBShades($state);
$set('panel_color_shade_' . $this->getPanelID(), $shades ?? '// Invalid RGB'); $set('panel_color_shade_' . $this->getPanelID(), $shades ?? '// Invalid RGB');
}) })

View File

@@ -170,8 +170,8 @@ class DashPanelProvider extends PanelProvider
private function applyConditionalConfiguration(Panel $panel): void private function applyConditionalConfiguration(Panel $panel): void
{ {
$actions = [ $actions = [
'login' => [$this->panelLogin, fn(): \Filament\Panel => $panel->login()], 'login' => [$this->panelLogin, $panel->login(...)],
'register' => [$this->panelRegistration, fn(): \Filament\Panel => $panel->registration()], 'register' => [$this->panelRegistration, $panel->registration(...)],
'profile' => [$this->panelProfile, fn(): \Filament\Panel => $panel->profile()], 'profile' => [$this->panelProfile, fn(): \Filament\Panel => $panel->profile()],
'spa' => [$this->panelSPA, fn(): \Filament\Panel => $panel 'spa' => [$this->panelSPA, fn(): \Filament\Panel => $panel
->spa(hasPrefetching: $this->panelSPAPrefetch) ->spa(hasPrefetching: $this->panelSPAPrefetch)