Skip to content

Commit

Permalink
Merge branch 'main' of github.com:aymanalhattami/filament-context-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanalhattami committed Apr 18, 2024
2 parents 33d2e25 + 49c1803 commit 3af1f74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
18 changes: 9 additions & 9 deletions src/ContentMenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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;

Expand All @@ -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;

Expand All @@ -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;

Expand All @@ -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;

Expand Down
4 changes: 0 additions & 4 deletions src/FilamentContextMenuServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 3af1f74

Please sign in to comment.