Skip to content

Commit

Permalink
chore: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenpaauw authored and github-actions[bot] committed Sep 30, 2024
1 parent 5882aef commit 75b58ef
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/Plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ final class Plan
public function __construct(
private readonly Repository $repository,
private readonly string $plan = 'default',
) {
}
) {}

public function type(): string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Stripe/BillingProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ final class BillingProvider implements Provider
{
public function __construct(
private readonly string $plan = 'default',
) {
}
) {}

public function getRouteAction(): string|Closure|array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Stripe/RedirectIfUserNotSubscribed.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ final class RedirectIfUserNotSubscribed
{
public function __construct(
private readonly Repository $repository,
) {
}
) {}

/**
* @param Closure(Request): (Response) $next
Expand Down
2 changes: 1 addition & 1 deletion src/TenantRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class TenantRepository
{
public static function make(): self
{
return new self();
return new self;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/BillingProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

0 comments on commit 75b58ef

Please sign in to comment.