Apply suggestions from code review
Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com>
This commit is contained in:
parent
17f5823e98
commit
9e935c4fbf
@ -42,7 +42,7 @@ class CalendarGenerator
|
||||
"isToday" => $day->isToday(),
|
||||
"isWeekend" => $day->isWeekend(),
|
||||
"isHoliday" => $holidays->contains($day),
|
||||
"isFuture" => $day->isToday() || $day >= Carbon::now(),
|
||||
"isFuture" => $day->isFuture(),
|
||||
"vacations" => $vacationsForDay->pluck("user_id"),
|
||||
"vacationTypes" => $vacationsForDay->pluck("vacationRequest.type", "user_id"),
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user