@@ -61,11 +61,11 @@ |
||
| 61 | 61 | $comments = $request['comments']; |
| 62 | 62 | |
| 63 | 63 | $vacancies = $this->calendar() |
| 64 | - ->forService($service->id) |
|
| 65 | - ->withDuration($service->duration) |
|
| 66 | - ->forDate($request['date']) |
|
| 67 | - ->atTime($request['time']) |
|
| 68 | - ->find(); |
|
| 64 | + ->forService($service->id) |
|
| 65 | + ->withDuration($service->duration) |
|
| 66 | + ->forDate($request['date']) |
|
| 67 | + ->atTime($request['time']) |
|
| 68 | + ->find(); |
|
| 69 | 69 | |
| 70 | 70 | if ($vacancies->count() == 0) { |
| 71 | 71 | // TODO: Log failure feedback message / raise exception |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | if ($this->duration !== null) { |
| 16 | 16 | $toDatetime = $fromDatetime->addMinutes($this->duration); |
| 17 | 17 | |
| 18 | - $results = $results->reject(function ($vacancy) use ($fromDatetime, $toDatetime) { |
|
| 18 | + $results = $results->reject(function($vacancy) use ($fromDatetime, $toDatetime) { |
|
| 19 | 19 | return !$vacancy->hasRoomBetween($fromDatetime, $toDatetime); |
| 20 | 20 | }); |
| 21 | 21 | } |