diff --git a/app/Filament/RelationManagers/ExpensesRelationManager.php b/app/Filament/RelationManagers/ExpensesRelationManager.php index f372c52fa..2142ffaad 100644 --- a/app/Filament/RelationManagers/ExpensesRelationManager.php +++ b/app/Filament/RelationManagers/ExpensesRelationManager.php @@ -2,7 +2,6 @@ namespace App\Filament\RelationManagers; -use App\Contracts\Model; use App\Models\Aircraft; use App\Models\Enums\ExpenseType; use App\Models\Subfleet; @@ -53,7 +52,7 @@ public function table(Table $table): Table $ownerRecord = $livewire->getOwnerRecord(); if ($ownerRecord instanceof Subfleet) { $data['airline_id'] = $ownerRecord->airline_id; - } else if ($ownerRecord instanceof Aircraft) { + } elseif ($ownerRecord instanceof Aircraft) { $data['airline_id'] = $ownerRecord->subfleet->airline_id; } @@ -77,7 +76,7 @@ public function table(Table $table): Table $ownerRecord = $livewire->getOwnerRecord(); if ($ownerRecord instanceof Subfleet) { $data['airline_id'] = $ownerRecord->airline_id; - } else if ($ownerRecord instanceof Aircraft) { + } elseif ($ownerRecord instanceof Aircraft) { $data['airline_id'] = $ownerRecord->subfleet->airline_id; } diff --git a/app/Filament/Widgets/News.php b/app/Filament/Widgets/News.php index dc66bbf60..a3afe7df7 100644 --- a/app/Filament/Widgets/News.php +++ b/app/Filament/Widgets/News.php @@ -54,8 +54,8 @@ public function table(Table $table): Table Tables\Columns\TextColumn::make('user.name') ->formatStateUsing(fn (NewsModel $record): string => $record->user->name.' - '.$record->created_at->diffForHumans()) - ->alignEnd() - ]) + ->alignEnd(), + ]), ]) ->actions([ Tables\Actions\ActionGroup::make([ @@ -72,8 +72,8 @@ public function table(Table $table): Table } }), - Tables\Actions\DeleteAction::make() - ]) + Tables\Actions\DeleteAction::make(), + ]), ]) ->headerActions([ Tables\Actions\CreateAction::make('create')