Skip to content

Commit d8c477c

Browse files
Fix styling
1 parent 76540a2 commit d8c477c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Pages/Auth/EditProfile.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Backstage\Users\Pages\Auth;
44

5-
use Filament\Pages\Auth\EditProfile;
6-
use Filament\Forms\Components\Select;
75
use Backstage\Filament\Users\Models\User;
86
use Backstage\Laravel\Users\Enums\NotificationType;
7+
use Filament\Forms\Components\Select;
8+
use Filament\Pages\Auth\EditProfile;
99

1010
class Profile extends EditProfile
1111
{
@@ -36,21 +36,21 @@ public static function getNotificationFormComponent(): Select
3636
$options = [];
3737

3838
foreach ($types as $type) {
39-
$options[$type->value] = $type->label();
39+
$options[$type->value] = $type->label();
4040
}
4141

4242
return Select::make('notification_preferences')
4343
->label(__('Notification preferences'))
44-
->options(fn() => $options)
44+
->options(fn () => $options)
4545
->live()
46-
->placeholder(fn() => ('Select notification preferences'))
46+
->placeholder(fn () => ('Select notification preferences'))
4747
->searchingMessage(__('Searching notification types...'))
4848
->searchPrompt(__('Search notification types...'))
4949
->saveRelationshipsUsing(function (User $record, array $state) {
50-
$state = collect($state)->map(fn($value) => NotificationType::from($value));
50+
$state = collect($state)->map(fn ($value) => NotificationType::from($value));
5151

5252
$state->each(function (NotificationType $type) use ($record) {
53-
if (!$record->notificationPreferences->contains('navigation_type', $type->value)) {
53+
if (! $record->notificationPreferences->contains('navigation_type', $type->value)) {
5454

5555
$record->notificationPreferences()->create([
5656
'navigation_type' => $type->value,
@@ -70,9 +70,9 @@ protected function mutateFormDataBeforeFill(array $data): array
7070
$user = $this->getUser();
7171

7272
if ($user->notificationPreferences->isNotEmpty()) {
73-
$data['notification_preferences'] = $user->notificationPreferences->pluck('navigation_type')->map(fn(NotificationType $record) => $record->value)->toArray();
73+
$data['notification_preferences'] = $user->notificationPreferences->pluck('navigation_type')->map(fn (NotificationType $record) => $record->value)->toArray();
7474
}
7575

7676
return $data;
7777
}
78-
}
78+
}

0 commit comments

Comments
 (0)