Skip to content

Commit

Permalink
Merge branch 'main' of github.com:stephenjude/filament-feature-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjude committed Sep 25, 2024
2 parents 59f3302 + fcd36ea commit 8d571f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/FeatureFlagPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ public function register(Panel $panel): void
$panel->resources(config('filament-feature-flags.resources'));
}

public function boot(Panel $panel): void
{
}
public function boot(Panel $panel): void {}

public static function make(): static
{
Expand Down
1 change: 0 additions & 1 deletion src/Resources/ManageFeatureSegments.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use Filament\Notifications\Notification;
use Filament\Resources\Pages\ManageRecords;
use Laravel\Pennant\Feature;
use Saade\FilamentLaravelLog\FilamentLaravelLogPlugin;
use Stephenjude\FilamentFeatureFlag\Events\FeatureActivatedForAll;
use Stephenjude\FilamentFeatureFlag\Events\FeatureDeactivatedForAll;
use Stephenjude\FilamentFeatureFlag\Events\FeatureSegmentCreated;
Expand Down
4 changes: 2 additions & 2 deletions src/Traits/HasAuthorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ trait HasAuthorization
{
use EvaluatesClosures;

public Closure | bool $authorized = true;
public Closure|bool $authorized = true;

public function authorize(Closure | bool $condition = true): static
public function authorize(Closure|bool $condition = true): static
{
$this->authorized = $condition;

Expand Down
2 changes: 1 addition & 1 deletion tests/FilamentFeatureFlagPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use Stephenjude\FilamentFeatureFlag\Resources\FeatureSegmentResource;
use Stephenjude\FilamentFeatureFlag\Resources\ManageFeatureSegments;

use function Pest\Laravel\{get};
use function Pest\Laravel\get;
use function Pest\Livewire\livewire;

it('can render page', function () {
Expand Down

0 comments on commit 8d571f7

Please sign in to comment.