Completed
Push — master ( ef29db...6cb927 )
by Ariel
06:10
created
src/Concierge.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Carbon\Carbon;
6 6
 use Timegridio\Concierge\Booking\Strategies\BookingStrategy;
7 7
 use Timegridio\Concierge\Calendar\VacancyCalendar;
8
-use Timegridio\Concierge\Models\Business;
9 8
 use Timegridio\Concierge\Models\Service;
10 9
 
11 10
 /*******************************************************************************
Please login to merge, or discard this patch.
src/Calendar/DateslotCalendar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
         $results = $this->vacancies->get();
12 12
 
13
-        $results = $results->reject(function ($vacancy) {
13
+        $results = $results->reject(function($vacancy) {
14 14
 
15 15
             return !$vacancy->hasRoom();
16 16
         });
Please login to merge, or discard this patch.
src/Calendar/TimeslotCalendar.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
         }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             $this->vacancies->forService($this->service);
30 30
         }
31 31
 
32
-        if ($this->date !== null &&  $this->time !== null) {
32
+        if ($this->date !== null && $this->time !== null) {
33 33
             $this->vacancies->forDateTime($this->getUTCDateTime());
34 34
         }
35 35
 
Please login to merge, or discard this patch.