Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpar06 authored and StyleCIBot committed Jul 6, 2024
1 parent 3c55d78 commit e27ed10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions app/Filament/RelationManagers/ExpensesRelationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions app/Filament/Widgets/News.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -72,8 +72,8 @@ public function table(Table $table): Table
}
}),

Tables\Actions\DeleteAction::make()
])
Tables\Actions\DeleteAction::make(),
]),
])
->headerActions([
Tables\Actions\CreateAction::make('create')
Expand Down

0 comments on commit e27ed10

Please sign in to comment.