Skip to content

Commit 1bb1e63

Browse files
stephenjudegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 544d2af commit 1bb1e63

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

database/migrations/2025_08_22_134103_create_teams_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class extends Migration {
7+
return new class extends Migration
8+
{
89
/**
910
* Run the migrations.
1011
*/
@@ -63,5 +64,4 @@ public function down(): void
6364

6465
Schema::enableForeignKeyConstraints();
6566
}
66-
6767
};

src/Concerns/HasTeamsFeatures.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ trait HasTeamsFeatures
2828

2929
public string $teamInvitationModel = TeamInvitation::class;
3030

31-
public Closure|bool $hasTeamFeature = false;
31+
public Closure | bool $hasTeamFeature = false;
32+
3233
public string $tenantSlug = 'slug';
3334

3435
public ?Closure $acceptTeamInvitation = null;
@@ -37,12 +38,13 @@ public function hasTeamsFeatures(): bool
3738
{
3839
return $this->evaluate($this->hasTeamFeature) === true;
3940
}
41+
4042
public function getTenantSlug(): string
4143
{
4244
return $this->tenantSlug;
4345
}
4446

45-
public function teams(Closure|bool $condition = true, ?Closure $acceptTeamInvitation = null, string $tenantSlug = 'slug'): static
47+
public function teams(Closure | bool $condition = true, ?Closure $acceptTeamInvitation = null, string $tenantSlug = 'slug'): static
4648
{
4749
$this->hasTeamFeature = $condition;
4850

@@ -63,7 +65,7 @@ public function getTeamRolesAndPermissions(): array
6365
public function teamsRoutes(): array
6466
{
6567
return [
66-
Route::get('/team-invitations/{invitation}', fn($invitation) => $this->acceptTeamInvitation === null
68+
Route::get('/team-invitations/{invitation}', fn ($invitation) => $this->acceptTeamInvitation === null
6769
? $this->defaultAcceptTeamInvitation($invitation)
6870
: $this->evaluate($this->acceptTeamInvitation, ['invitationId' => $invitation]))
6971
->middleware(['signed'])
@@ -108,7 +110,7 @@ public function roleModel(): string
108110
return $this->roleModel;
109111
}
110112

111-
public function defaultAcceptTeamInvitation(string|int $invitationId): RedirectResponse
113+
public function defaultAcceptTeamInvitation(string | int $invitationId): RedirectResponse
112114
{
113115
$model = Jetstream::plugin()->teamInvitationModel();
114116

src/JetstreamPlugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ public static function get(): static
4747
public function register(Panel $panel): void
4848
{
4949
$panel
50-
->homeUrl(fn() => str(filament()->getCurrentOrDefaultPanel()->getUrl())->append('/dashboard'))
50+
->homeUrl(fn () => str(filament()->getCurrentOrDefaultPanel()->getUrl())->append('/dashboard'))
5151
->profile(EditProfile::class)
5252
->plugins([
5353
TwoFactorAuthenticationPlugin::make()
54-
->enableTwoFactorAuthentication(condition: fn() => $this->enabledTwoFactorAuthetication())
55-
->enablePasskeyAuthentication(condition: fn() => $this->enabledPasskeyAuthetication())
54+
->enableTwoFactorAuthentication(condition: fn () => $this->enabledTwoFactorAuthetication())
55+
->enablePasskeyAuthentication(condition: fn () => $this->enabledPasskeyAuthetication())
5656
->forceTwoFactorSetup(
57-
condition: fn() => $this->forceTwoFactorAuthetication(),
57+
condition: fn () => $this->forceTwoFactorAuthetication(),
5858
requiresPassword: $this->requiresPasswordForAuthenticationSetup()
5959
),
6060
]);
@@ -71,7 +71,7 @@ public function register(Panel $panel): void
7171
->tenant($this->teamModel(), $this->getTenantSlug())
7272
->tenantRegistration(CreateTeam::class)
7373
->tenantProfile(EditTeam::class)
74-
->routes(fn() => $this->teamsRoutes());
74+
->routes(fn () => $this->teamsRoutes());
7575
}
7676
}
7777

0 commit comments

Comments
 (0)