Skip to content

Commit 1ad41e4

Browse files
committed
ci: update Dependencies
1 parent 5e31612 commit 1ad41e4

File tree

30 files changed

+152
-181
lines changed

30 files changed

+152
-181
lines changed

app/Actions/Fortify/UpdateUserProfileInformation.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class UpdateUserProfileInformation implements UpdatesUserProfileInformation
1414
/**
1515
* Validate and update the given user's profile information.
1616
*
17-
* @param array<string, mixed> $input
17+
* @param array<string, mixed> $input
18+
*
1819
* @SuppressWarnings(PHPMD)
1920
*
2021
* @throws ValidationException

app/Filament/Resources/Shield/RoleResource.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static function form(Form $form): Form
7070
]),
7171
Forms\Components\Tabs::make('Permissions')
7272
->contained()
73-
//@phpstan-ignore-next-line
73+
// @phpstan-ignore-next-line
7474
->tabs([
7575
static::getTabFormComponentForResources(),
7676
static::getTabFormComponentForPage(),
@@ -124,6 +124,7 @@ public static function getRelations(): array
124124

125125
/**
126126
* @return array|PageRegistration[]
127+
*
127128
* @SuppressWarnings(PHPMD)
128129
*/
129130
public static function getPages(): array
@@ -252,12 +253,7 @@ public static function getResourcePermissionOptions(array $entity): array
252253
}
253254

254255
/**
255-
* @param Component $component
256-
* @param string $operation
257-
* @param array $permissions
258-
* @param Model|null $record
259256
* @SuppressWarnings(PHPMD)
260-
* @return void
261257
*/
262258
public static function setPermissionStateForRecordPermissions(Component $component, string $operation, array $permissions, ?Model $record): void
263259
{
@@ -389,11 +385,7 @@ public static function getTabFormComponentForSimpleResourcePermissionsView(): Co
389385
}
390386

391387
/**
392-
* @param string $name
393-
* @param array $options
394-
* @param bool $searchable
395388
* @SuppressWarnings(PHPMD)
396-
* @return Component
397389
*/
398390
public static function getCheckboxListFormComponent(string $name, array $options, bool $searchable = true): Component
399391
{

app/Filament/Resources/Shield/RoleResource/Pages/CreateRole.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class CreateRole extends CreateRecord
1515
public Collection $permissions;
1616

1717
/**
18-
* @param array $data
1918
* @SuppressWarnings(PHPMD)
19+
*
2020
* @return array|mixed[]
2121
*/
2222
protected function mutateFormDataBeforeCreate(array $data): array
@@ -41,7 +41,7 @@ protected function afterCreate(): void
4141
'guard_name' => $this->data['guard_name'],
4242
]));
4343
});
44-
//@phpstan-ignore-next-line
44+
// @phpstan-ignore-next-line
4545
$this->record->syncPermissions($permissionModels);
4646
}
4747
}

app/Filament/Resources/Shield/RoleResource/Pages/EditRole.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ protected function getActions(): array
2323
}
2424

2525
/**
26-
* @param array $data
2726
* @SuppressWarnings(PHPMD)
27+
*
2828
* @return array|mixed[]
2929
*/
3030
protected function mutateFormDataBeforeSave(array $data): array
@@ -49,7 +49,7 @@ protected function afterSave(): void
4949
'guard_name' => $this->data['guard_name'],
5050
]));
5151
});
52-
//@phpstan-ignore-next-line
52+
// @phpstan-ignore-next-line
5353
$this->record->syncPermissions($permissionModels);
5454
}
5555
}

app/Filament/Resources/TeamResource.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,25 @@
66
use App\Filament\Resources\TeamResource\RelationManagers;
77
use App\Models\Team;
88
use App\Models\User;
9-
use Filament\Actions\EditAction;
109
use Filament\Forms;
1110
use Filament\Forms\Form;
1211
use Filament\Resources\Resource;
1312
use Filament\Tables;
1413
use Filament\Tables\Table;
15-
use Illuminate\Database\Eloquent\Builder;
16-
use Illuminate\Database\Eloquent\SoftDeletingScope;
17-
use Livewire\Component;
1814

1915
class TeamResource extends Resource
2016
{
2117
protected static ?string $model = Team::class;
2218

2319
protected static ?string $navigationLabel = 'Teams';
20+
2421
protected static ?string $navigationIcon = 'heroicon-o-users';
22+
2523
protected static ?int $navigationSort = 3;
2624

2725
protected static ?string $slug = 'teams';
28-
protected static ?string $navigationGroup = 'Management';
2926

27+
protected static ?string $navigationGroup = 'Management';
3028

3129
public static function form(Form $form): Form
3230
{

app/Filament/Resources/TeamResource/Pages/CreateTeam.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
namespace App\Filament\Resources\TeamResource\Pages;
44

55
use App\Filament\Resources\TeamResource;
6-
use Filament\Actions;
76
use Filament\Resources\Pages\CreateRecord;
87

98
class CreateTeam extends CreateRecord
109
{
1110
protected static string $resource = TeamResource::class;
12-
13-
1411
}

app/Filament/Resources/TeamResource/Pages/EditTeam.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
use App\Filament\Resources\TeamResource;
66
use Filament\Actions;
77
use Filament\Resources\Pages\EditRecord;
8-
use Livewire\Attributes\On;
9-
use function Laravel\Prompts\table;
108

119
class EditTeam extends EditRecord
1210
{
@@ -18,5 +16,4 @@ protected function getHeaderActions(): array
1816
Actions\DeleteAction::make(),
1917
];
2018
}
21-
2219
}

app/Filament/Resources/TeamResource/RelationManagers/UsersRelationManager.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@
33
namespace App\Filament\Resources\TeamResource\RelationManagers;
44

55
use Filament\Forms;
6-
use Filament\Tables;
76
use Filament\Resources\RelationManagers\RelationManager;
8-
use Livewire\Attributes\On;
9-
use Livewire\Component;
7+
use Filament\Tables;
108

119
class UsersRelationManager extends RelationManager
1210
{
13-
1411
protected static string $relationship = 'users';
1512

16-
17-
1813
public function form(Forms\Form $form): Forms\Form
1914
{
2015
return $form
@@ -25,7 +20,6 @@ public function form(Forms\Form $form): Forms\Form
2520
]);
2621
}
2722

28-
2923
public function table(Tables\Table $table): Tables\Table
3024
{
3125
return $table
@@ -45,7 +39,4 @@ public function table(Tables\Table $table): Tables\Table
4539
])
4640
->bulkActions([]);
4741
}
48-
49-
5042
}
51-

app/Filament/Resources/UserResource.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function form(Form $form): Form
3333
Forms\Components\TextInput::make('password')
3434
->password()
3535
->revealable(filament()->arePasswordsRevealable())
36-
->required(fn($operation) => $operation === 'create')
36+
->required(fn ($operation) => $operation === 'create')
3737
->autocomplete('new-password')
3838
->dehydrated(fn ($state): bool => filled($state))
3939
->dehydrateStateUsing(fn ($state): string => Hash::make($state))
@@ -97,6 +97,7 @@ public static function table(Table $table): Table
9797

9898
/**
9999
* @SuppressWarnings(PHPMD)
100+
*
100101
* @return array|PageRegistration[]
101102
*/
102103
public static function getPages(): array

app/Models/User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public function canAccessPanel(Panel $panel): bool
9393
if ($panel->getId() === 'admin' || $this->hasRole('super_admin')) {
9494
return str_ends_with($this->username, 'admin');
9595
}
96+
9697
return str_ends_with($this->email, '@yourdomain.com') && $this->hasVerifiedEmail();
9798
}
9899
}

0 commit comments

Comments
 (0)