Skip to content

Commit

Permalink
chore: fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
datlechin committed Nov 9, 2024
1 parent 310191f commit 659e92e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/FilamentMenuBuilderPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Datlechin\FilamentMenuBuilder;

use Closure;
use Datlechin\FilamentMenuBuilder\Contracts\MenuPanel;
use Datlechin\FilamentMenuBuilder\Models\Menu;
use Datlechin\FilamentMenuBuilder\Models\MenuItem;
Expand All @@ -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[]
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 659e92e

Please sign in to comment.