From 083bf63e181e836f0c16d9c9cf0ca1ba480f81b1 Mon Sep 17 00:00:00 2001 From: idevakk <219866223+idevakk@users.noreply.github.com> Date: Tue, 3 Mar 2026 01:54:26 +0530 Subject: [PATCH] style: run rector --- app/Filament/Pages/PanelSettings.php | 2 +- app/Providers/Filament/DashPanelProvider.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Filament/Pages/PanelSettings.php b/app/Filament/Pages/PanelSettings.php index 299a63c..bc8ccfc 100644 --- a/app/Filament/Pages/PanelSettings.php +++ b/app/Filament/Pages/PanelSettings.php @@ -193,7 +193,7 @@ class PanelSettings extends AbstractPageSettings ->rgb() ->regex('/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/') ->live() - ->afterStateUpdated(function ($state, callable $set): void { + ->afterStateUpdated(function (string $state, callable $set): void { $shades = ColorHelper::generateOklchFromRGBShades($state); $set('panel_color_shade_' . $this->getPanelID(), $shades ?? '// Invalid RGB'); }) diff --git a/app/Providers/Filament/DashPanelProvider.php b/app/Providers/Filament/DashPanelProvider.php index 1e126c9..61d526f 100644 --- a/app/Providers/Filament/DashPanelProvider.php +++ b/app/Providers/Filament/DashPanelProvider.php @@ -170,8 +170,8 @@ class DashPanelProvider extends PanelProvider private function applyConditionalConfiguration(Panel $panel): void { $actions = [ - 'login' => [$this->panelLogin, fn(): \Filament\Panel => $panel->login()], - 'register' => [$this->panelRegistration, fn(): \Filament\Panel => $panel->registration()], + 'login' => [$this->panelLogin, $panel->login(...)], + 'register' => [$this->panelRegistration, $panel->registration(...)], 'profile' => [$this->panelProfile, fn(): \Filament\Panel => $panel->profile()], 'spa' => [$this->panelSPA, fn(): \Filament\Panel => $panel ->spa(hasPrefetching: $this->panelSPAPrefetch)