From ac81882b3fa4c328d5f4ecbafff96c83bc8fcff7 Mon Sep 17 00:00:00 2001 From: Adrian Hopek Date: Tue, 1 Mar 2022 12:47:51 +0100 Subject: [PATCH] #43 - ecs fix --- .../Http/Controllers/VacationRequestController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Infrastructure/Http/Controllers/VacationRequestController.php b/app/Infrastructure/Http/Controllers/VacationRequestController.php index d3c78fa..351604e 100644 --- a/app/Infrastructure/Http/Controllers/VacationRequestController.php +++ b/app/Infrastructure/Http/Controllers/VacationRequestController.php @@ -67,9 +67,10 @@ class VacationRequestController extends Controller $yearPeriod = $yearPeriodRetriever->selected(); $users = User::query() - ->whereRelation("vacationlimits", fn(Builder $query) => $query - ->where("year_period_id", $yearPeriod->id) - ->whereNotNull("days")) + ->whereRelation( + "vacationlimits", + fn(Builder $query) => $query->where("year_period_id", $yearPeriod->id)->whereNotNull("days"), + ) ->orderBy("last_name") ->orderBy("first_name") ->get();