From 659e92e7a303032637d7390d461538e7b8fa8e4c Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Sat, 9 Nov 2024 13:00:37 +0700 Subject: [PATCH] chore: fix code styling --- src/FilamentMenuBuilderPlugin.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/FilamentMenuBuilderPlugin.php b/src/FilamentMenuBuilderPlugin.php index 212241d..84d858c 100644 --- a/src/FilamentMenuBuilderPlugin.php +++ b/src/FilamentMenuBuilderPlugin.php @@ -4,6 +4,7 @@ namespace Datlechin\FilamentMenuBuilder; +use Closure; use Datlechin\FilamentMenuBuilder\Contracts\MenuPanel; use Datlechin\FilamentMenuBuilder\Models\Menu; use Datlechin\FilamentMenuBuilder\Models\MenuItem; @@ -24,9 +25,9 @@ class FilamentMenuBuilderPlugin implements Plugin protected array $locations = []; - protected array | Closure $menuFields = []; + protected array|Closure $menuFields = []; - protected array | Closure $menuItemFields = []; + protected array|Closure $menuItemFields = []; /** * @var MenuPanel[] @@ -142,14 +143,14 @@ public function showCustomTextPanel(bool $show = true): static return $this; } - public function addMenuFields(array | Closure $schema): static + public function addMenuFields(array|Closure $schema): static { $this->menuFields = $schema; return $this; } - public function addMenuItemFields(array | Closure $schema): static + public function addMenuItemFields(array|Closure $schema): static { $this->menuItemFields = $schema; @@ -201,12 +202,12 @@ public function getLocations(): array return $this->locations; } - public function getMenuFields(): array | Closure + public function getMenuFields(): array|Closure { return $this->menuFields; } - public function getMenuItemFields(): array | Closure + public function getMenuItemFields(): array|Closure { return $this->menuItemFields; }