style: run rector
This commit is contained in:
@@ -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');
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user