Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Nov 19, 2024
2 parents f9791e1 + 183c916 commit d044916
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Resources/RedirectResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static function table(Table $table): Table
->width(0)
->searchable()
->sortable()
->color(fn(string $state): string => match ($state) {
->color(fn (string $state): string => match ($state) {
'301' => 'info',
'302' => 'gray',
'307' => 'warning',
Expand All @@ -101,7 +101,7 @@ public static function table(Table $table): Table
->searchable()
->sortable()
->alignRight()
->formatStateUsing(fn(string $state): string => $state . ' ×')
->formatStateUsing(fn (string $state): string => $state . ' ×')
->width(50),
TextColumn::make('destination')
->width('50%')
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/RedirectResource/Pages/ListRedirects.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
use Filament\Actions\ActionGroup;
use Filament\Forms\Components\Grid;
use Filament\Forms\Components\Select;
use Filament\Support\Enums\ActionSize;
use Filament\Forms\Components\Textarea;
use Filament\Resources\Pages\ListRecords;
use Filament\Support\Enums\ActionSize;
use Vormkracht10\FilamentRedirects\Imports\RedirectImporter;
use Vormkracht10\FilamentRedirects\Resources\RedirectResource;

Expand All @@ -33,7 +33,7 @@ protected function getHeaderActions(): array
->label(__('Type'))
->columnSpanFull()
->native(false)
->options(collect(config('redirects.status_codes'))->map(fn(string $type, int $code) => $code . ' ' . $type))
->options(collect(config('redirects.status_codes'))->map(fn (string $type, int $code) => $code . ' ' . $type))
->default(config('redirects.default_status_code'))
->prefixIcon('heroicon-o-map-pin')
->placeholder('HTTP status message')
Expand Down

0 comments on commit d044916

Please sign in to comment.