From aa0f7569e9a2af36358b2a0b7b7d200d1e3d3e1b Mon Sep 17 00:00:00 2001 From: ryangjchandler Date: Thu, 27 Oct 2022 10:40:43 +0000 Subject: [PATCH] Fix styling --- .../Pages/Concerns/HandlesNavigationBuilder.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Filament/Resources/NavigationResource/Pages/Concerns/HandlesNavigationBuilder.php b/src/Filament/Resources/NavigationResource/Pages/Concerns/HandlesNavigationBuilder.php index 5ca9a15..7cb831a 100644 --- a/src/Filament/Resources/NavigationResource/Pages/Concerns/HandlesNavigationBuilder.php +++ b/src/Filament/Resources/NavigationResource/Pages/Concerns/HandlesNavigationBuilder.php @@ -52,7 +52,7 @@ public function indentItem(string $statePath) $previous = $parent[$keys[$position - 1]]; - if (!isset($previous['children'])) { + if (! isset($previous['children'])) { $previous['children'] = []; } @@ -88,7 +88,7 @@ public function moveItemUp(string $statePath) $hasMoved = false; uksort($parent, function ($_, $b) use ($uuid, &$hasMoved) { - if ($b === $uuid && !$hasMoved) { + if ($b === $uuid && ! $hasMoved) { $hasMoved = true; return 1; @@ -109,7 +109,7 @@ public function moveItemDown(string $statePath) $hasMoved = false; uksort($parent, function ($a, $_) use ($uuid, &$hasMoved) { - if ($a === $uuid && !$hasMoved) { + if ($a === $uuid && ! $hasMoved) { $hasMoved = true; return 1; @@ -143,7 +143,7 @@ protected function getActions(): array return [ Action::make('item') ->mountUsing(function (ComponentContainer $form) { - if (!$this->mountedItem) { + if (! $this->mountedItem) { return; } @@ -162,7 +162,7 @@ protected function getActions(): array return array_combine(array_keys($types), Arr::pluck($types, 'name')); }) ->afterStateUpdated(function ($state, Select $component): void { - if (!$state) { + if (! $state) { return; }