Skip to content

Commit

Permalink
PHP Linting (Pint)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreia authored and github-actions[bot] committed Aug 16, 2023
1 parent 1504b24 commit 513aa25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
5 changes: 2 additions & 3 deletions src/RelationManagers/AuthenticationLogsRelationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
namespace Tapp\FilamentAuthenticationLog\RelationManagers;

use Filament\Resources\RelationManagers\RelationManager;
use Filament\Tables\Table;
use Filament\Tables;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Support\HtmlString;
use Illuminate\Support\Str;

Expand All @@ -35,7 +34,7 @@ public function table(Table $table): Table
return new HtmlString('—');
}

return new HtmlString('<a href="' . route('filament.admin.resources.' . Str::plural((Str::lower(class_basename($record->authenticatable::class)))) . '.edit', ['record' => $record->authenticatable_id]) . '" class="inline-flex items-center justify-center hover:underline focus:outline-none focus:underline filament-tables-link text-primary-600 hover:text-primary-500 text-sm font-medium filament-tables-link-action">' . class_basename($record->authenticatable::class) . '</a>');
return new HtmlString('<a href="'.route('filament.admin.resources.'.Str::plural((Str::lower(class_basename($record->authenticatable::class)))).'.edit', ['record' => $record->authenticatable_id]).'" class="inline-flex items-center justify-center hover:underline focus:outline-none focus:underline filament-tables-link text-primary-600 hover:text-primary-500 text-sm font-medium filament-tables-link-action">'.class_basename($record->authenticatable::class).'</a>');
})
->sortable(),
Tables\Columns\TextColumn::make('ip_address')
Expand Down
8 changes: 3 additions & 5 deletions src/Resources/AuthenticationLogResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@
use Filament\Forms\Components\DatePicker;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables\Table;
use Filament\Tables;
use Filament\Tables\Actions\Action;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Filters\Filter;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\HtmlString;
use Illuminate\Support\Str;
use Rappasoft\LaravelAuthenticationLog\Models\AuthenticationLog;
use Tapp\FilamentAuthenticationLog\Resources\AuthenticationLogResource\Pages;
use Tapp\FilamentAuthenticationLog\Resources\AuthenticationLogResource\RelationManagers;

class AuthenticationLogResource extends Resource
{
Expand Down Expand Up @@ -76,7 +74,7 @@ public static function table(Table $table): Table
return new HtmlString('&mdash;');
}

return new HtmlString('<a href="' . route('filament.admin.resources.' . Str::plural((Str::lower(class_basename($record->authenticatable::class)))) . '.edit', ['record' => $record->authenticatable_id]) . '" class="inline-flex items-center justify-center hover:underline focus:outline-none focus:underline filament-tables-link text-primary-600 hover:text-primary-500 text-sm font-medium filament-tables-link-action">' . class_basename($record->authenticatable::class) . '</a>');
return new HtmlString('<a href="'.route('filament.admin.resources.'.Str::plural((Str::lower(class_basename($record->authenticatable::class)))).'.edit', ['record' => $record->authenticatable_id]).'" class="inline-flex items-center justify-center hover:underline focus:outline-none focus:underline filament-tables-link text-primary-600 hover:text-primary-500 text-sm font-medium filament-tables-link-action">'.class_basename($record->authenticatable::class).'</a>');
})
->sortable(),
Tables\Columns\TextColumn::make('ip_address')
Expand Down Expand Up @@ -140,7 +138,7 @@ public static function table(Table $table): Table
}),
Filter::make('cleared_by_user')
->toggle()
->query(fn (Builder $query): Builder => $query->where('cleared_by_user', true))
->query(fn (Builder $query): Builder => $query->where('cleared_by_user', true)),
]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Tapp\FilamentAuthenticationLog\Resources\AuthenticationLogResource\Pages;

use Filament\Actions;
use Filament\Actions\Action;
use Filament\Resources\Pages\ListRecords;
use Tapp\FilamentAuthenticationLog\Resources\AuthenticationLogResource;

Expand Down

0 comments on commit 513aa25

Please sign in to comment.