diff --git a/src/ContentMenuItem.php b/src/ContentMenuItem.php index d7812a0..e9d48b7 100644 --- a/src/ContentMenuItem.php +++ b/src/ContentMenuItem.php @@ -4,14 +4,14 @@ class ContentMenuItem { - private Closure|string|null $title = null; + private Closure | string | null $title = null; - private Closure|string|null $url = null; + private Closure | string | null $url = null; - private Closure|string|null $icon = null; + private Closure | string | null $icon = null; - # _blank, _self, _parent, _top - private Closure|string $target = '_self'; + // _blank, _self, _parent, _top + private Closure | string $target = '_self'; public static function make(): static { @@ -23,7 +23,7 @@ public function getTitle(): ?string return $this->title; } - public function title(Closure|string|null $title): static + public function title(Closure | string | null $title): static { $this->title = $title; @@ -35,7 +35,7 @@ public function getUrl(): ?string return $this->url; } - public function url(Closure|string|null $url): static + public function url(Closure | string | null $url): static { $this->url = $url; @@ -47,7 +47,7 @@ public function getIcon(): ?string return $this->icon; } - public function icon(Closure|string|null $icon): static + public function icon(Closure | string | null $icon): static { $this->icon = $icon; @@ -59,7 +59,7 @@ public function getTarget(): ?string return $this->target; } - public function target(Closure|string|null $target): static + public function target(Closure | string | null $target): static { $this->target = $target; diff --git a/src/FilamentContextMenuServiceProvider.php b/src/FilamentContextMenuServiceProvider.php index dcce83c..619dd7d 100644 --- a/src/FilamentContextMenuServiceProvider.php +++ b/src/FilamentContextMenuServiceProvider.php @@ -2,17 +2,13 @@ namespace AymanAlhattami\FilamentContextMenu; -use Filament\Support\Assets\Asset; use Filament\Support\Assets\Css; use Filament\Support\Assets\Js; use Filament\Support\Facades\FilamentAsset; -use Filament\Support\Facades\FilamentIcon; use Filament\Support\Facades\FilamentView; use Filament\View\PanelsRenderHook; -use Illuminate\Filesystem\Filesystem; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; -use VendorName\Skeleton\Testing\TestsSkeleton; class FilamentContextMenuServiceProvider extends PackageServiceProvider {