From 36b2defe4bd5eb8849aa689eaca5d1e6ced8a3b7 Mon Sep 17 00:00:00 2001 From: rahmanramsi Date: Fri, 3 Jan 2025 07:40:03 +0000 Subject: [PATCH] chore: fix code style --- .../ScheduledConference/Resources/SubmissionResource.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Panel/ScheduledConference/Resources/SubmissionResource.php b/app/Panel/ScheduledConference/Resources/SubmissionResource.php index e11ae0bd..441d53d1 100644 --- a/app/Panel/ScheduledConference/Resources/SubmissionResource.php +++ b/app/Panel/ScheduledConference/Resources/SubmissionResource.php @@ -5,7 +5,6 @@ use App\Constants\ReviewerStatus; use App\Models\Enums\SubmissionStage; use App\Models\Enums\SubmissionStatus; -use App\Models\Enums\UserRole; use App\Models\Submission; use App\Panel\ScheduledConference\Resources\SubmissionResource\Pages; use Filament\Resources\Resource; @@ -48,7 +47,7 @@ public static function getEloquentQuery(): Builder ->withCount([ 'editors', 'reviews', - 'reviews as completed_reviews_count' => fn($query) => $query->whereNotNull('date_completed') + 'reviews as completed_reviews_count' => fn ($query) => $query->whereNotNull('date_completed'), ]) ->with(['meta', 'user', 'reviews', 'participants']) ->orderBy('updated_at', 'desc'); @@ -93,7 +92,7 @@ public static function table(Table $table): Table ->searchable(query: function (Builder $query, string $search): Builder { return $query ->whereMeta('title', 'like', "%{$search}%") - ->orWhereHas('user', fn($query) => $query->whereMeta('public_name', 'like', "%{$search}%")->orWhere('given_name', 'like', "%{$search}%")->orWhere('family_name', 'like', "%{$search}%")); + ->orWhereHas('user', fn ($query) => $query->whereMeta('public_name', 'like', "%{$search}%")->orWhere('given_name', 'like', "%{$search}%")->orWhere('family_name', 'like', "%{$search}%")); }), Tables\Columns\TextColumn::make('status') ->extraAttributes([ @@ -125,9 +124,9 @@ public static function table(Table $table): Table ->extraCellAttributes([ 'style' => 'width: 1px', ]) - ->getStateUsing(fn($record) => $record->reviews_count ? view('panel.scheduledConference.components.review-count', [ + ->getStateUsing(fn ($record) => $record->reviews_count ? view('panel.scheduledConference.components.review-count', [ 'reviews_count' => $record->reviews_count, - 'completed_reviews_count' => $record->completed_reviews_count + 'completed_reviews_count' => $record->completed_reviews_count, ]) : ''), Tables\Columns\TextColumn::make('reviewed') ->badge()