diff --git a/src/Plan.php b/src/Plan.php index 0a4423c..df9c13c 100644 --- a/src/Plan.php +++ b/src/Plan.php @@ -12,8 +12,7 @@ final class Plan public function __construct( private readonly Repository $repository, private readonly string $plan = 'default', - ) { - } + ) {} public function type(): string { diff --git a/src/Stripe/BillingProvider.php b/src/Stripe/BillingProvider.php index b86131b..031bfb8 100644 --- a/src/Stripe/BillingProvider.php +++ b/src/Stripe/BillingProvider.php @@ -14,8 +14,7 @@ final class BillingProvider implements Provider { public function __construct( private readonly string $plan = 'default', - ) { - } + ) {} public function getRouteAction(): string|Closure|array { diff --git a/src/Stripe/RedirectIfUserNotSubscribed.php b/src/Stripe/RedirectIfUserNotSubscribed.php index 453defc..6013ec4 100644 --- a/src/Stripe/RedirectIfUserNotSubscribed.php +++ b/src/Stripe/RedirectIfUserNotSubscribed.php @@ -18,8 +18,7 @@ final class RedirectIfUserNotSubscribed { public function __construct( private readonly Repository $repository, - ) { - } + ) {} /** * @param Closure(Request): (Response) $next diff --git a/src/TenantRepository.php b/src/TenantRepository.php index c5922e6..6de04ac 100644 --- a/src/TenantRepository.php +++ b/src/TenantRepository.php @@ -14,7 +14,7 @@ final class TenantRepository { public static function make(): self { - return new self(); + return new self; } /** diff --git a/tests/BillingProviderTest.php b/tests/BillingProviderTest.php index d949872..7765f59 100644 --- a/tests/BillingProviderTest.php +++ b/tests/BillingProviderTest.php @@ -11,7 +11,7 @@ }); it('should use the default plan when no plan provided', function () { - expect(new BillingProvider()) + expect(new BillingProvider) ->getSubscribedMiddleware() ->toEqual('Maartenpaauw\Filament\Cashier\Stripe\RedirectIfUserNotSubscribed:default'); });