From 75580c2814be7efa7e8e93dfad568ada89af6fb5 Mon Sep 17 00:00:00 2001 From: ilestis Date: Mon, 22 Jan 2024 16:16:17 -0600 Subject: [PATCH] Pint changes --- app/Http/Controllers/CrudController.php | 1 - app/Observers/CampaignObserver.php | 2 +- app/Renderers/DatagridRenderer.php | 1 - app/Renderers/DatagridRenderer2.php | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/CrudController.php b/app/Http/Controllers/CrudController.php index 1a8e60cee6..faeec785ae 100644 --- a/app/Http/Controllers/CrudController.php +++ b/app/Http/Controllers/CrudController.php @@ -164,7 +164,6 @@ public function crudIndex(Request $request) // Don't use total as it won't use the distinct() filters (typically when doing // left join on the entities table) $filteredCount = $models->total(); - //$filteredCount = count($models); //->total() } else { /** @var Paginator $models */ $models = $base->paginate(); diff --git a/app/Observers/CampaignObserver.php b/app/Observers/CampaignObserver.php index 95f36278be..2f15d9f5d2 100644 --- a/app/Observers/CampaignObserver.php +++ b/app/Observers/CampaignObserver.php @@ -53,7 +53,7 @@ public function saving(Campaign $campaign) $isPublic = request()->get('is_public', null); if (!empty($isPublic) && $previousVisibility == Campaign::VISIBILITY_PRIVATE) { $campaign->visibility_id = Campaign::VISIBILITY_PUBLIC; - // Default to public for now. Later will have REVIEW mode. + // Default to public for now. Later will have REVIEW mode. } elseif (empty($isPublic) && $previousVisibility != Campaign::VISIBILITY_PRIVATE) { $campaign->visibility_id = Campaign::VISIBILITY_PRIVATE; } diff --git a/app/Renderers/DatagridRenderer.php b/app/Renderers/DatagridRenderer.php index 642bb347a0..17e138b343 100644 --- a/app/Renderers/DatagridRenderer.php +++ b/app/Renderers/DatagridRenderer.php @@ -153,7 +153,6 @@ private function renderHeadColumn($column) $class = $column['type']; if ($type == 'avatar') { $class = (!empty($column['parent']) ? $this->hidden : $class) . ' w-14'; - //$html = null; } elseif ($type == 'location') { $class .= ' ' . $this->hidden; $label = Arr::get($column, 'label', Module::singular(config('entities.ids.location'), __('entities.location'))); diff --git a/app/Renderers/DatagridRenderer2.php b/app/Renderers/DatagridRenderer2.php index 3e9ccc320c..d475ea333a 100644 --- a/app/Renderers/DatagridRenderer2.php +++ b/app/Renderers/DatagridRenderer2.php @@ -158,7 +158,7 @@ public function bulks(): array } continue; } - // More specific use cases? + // More specific use cases? } elseif ($bulk === Layout::ACTION_DELETE) { if (auth()->check() && auth()->user()->isAdmin()) { $this->bulks[] = $bulk;