@@ -66,16 +66,16 @@ |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | $fromTime = $this->wrappedObject |
| 69 | - ->vacancy |
|
| 70 | - ->start_at |
|
| 71 | - ->timezone($this->timezone()) |
|
| 72 | - ->format($timeFormat); |
|
| 69 | + ->vacancy |
|
| 70 | + ->start_at |
|
| 71 | + ->timezone($this->timezone()) |
|
| 72 | + ->format($timeFormat); |
|
| 73 | 73 | |
| 74 | 74 | $toTime = $this->wrappedObject |
| 75 | - ->vacancy |
|
| 76 | - ->finish_at |
|
| 77 | - ->timezone($this->timezone()) |
|
| 78 | - ->format($timeFormat); |
|
| 75 | + ->vacancy |
|
| 76 | + ->finish_at |
|
| 77 | + ->timezone($this->timezone()) |
|
| 78 | + ->format($timeFormat); |
|
| 79 | 79 | |
| 80 | 80 | return ['from' => $fromTime, 'to' => $toTime]; |
| 81 | 81 | } |
@@ -73,11 +73,11 @@ |
||
| 73 | 73 | $comments = $request['comments']; |
| 74 | 74 | |
| 75 | 75 | $vacancies = $this->calendar() |
| 76 | - ->forService($service->id) |
|
| 77 | - ->withDuration($service->duration) |
|
| 78 | - ->forDate($request['date']) |
|
| 79 | - ->atTime($request['time'], $request['timezone']) |
|
| 80 | - ->find(); |
|
| 76 | + ->forService($service->id) |
|
| 77 | + ->withDuration($service->duration) |
|
| 78 | + ->forDate($request['date']) |
|
| 79 | + ->atTime($request['time'], $request['timezone']) |
|
| 80 | + ->find(); |
|
| 81 | 81 | |
| 82 | 82 | if ($vacancies->count() == 0) { |
| 83 | 83 | // TODO: Log failure feedback message / raise exception |