Completed
Push — master ( 076ecd...1e6ec2 )
by Ariel
13:10
created
src/Traits/Preferenceable.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         if (isset($value)) {
31 31
             $this->preferences()->updateOrCreate(['key' => $key], ['value' => $this->cast($value, $type),
32
-                                                                   'type'  => $type, ]);
32
+                                                                    'type'  => $type, ]);
33 33
 
34 34
             return $value;
35 35
         }
Please login to merge, or discard this patch.
src/Timetable/Strategies/TimetableDateslotStrategy.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@
 block discarded – undo
17 17
     protected function initTimetable($starting, $days)
18 18
     {
19 19
         $this->timetable
20
-             ->format('date.service.time')
21
-             ->from($starting)
22
-             ->future($days)
23
-             ->init();
20
+                ->format('date.service.time')
21
+                ->from($starting)
22
+                ->future($days)
23
+                ->init();
24 24
     }
25 25
 
26 26
     /**
Please login to merge, or discard this patch.
src/Timetable/Strategies/TimetableTimeslotStrategy.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -95,11 +95,11 @@
 block discarded – undo
95 95
     public function buildTimetable($vacancies, $starting = 'today', $days = 1)
96 96
     {
97 97
         $this->timetable
98
-             ->interval($this->interval)
99
-             ->format('date.service.time')
100
-             ->from($starting)
101
-             ->future($days)
102
-             ->init();
98
+                ->interval($this->interval)
99
+                ->format('date.service.time')
100
+                ->from($starting)
101
+                ->future($days)
102
+                ->init();
103 103
 
104 104
         foreach ($vacancies as $vacancy) {
105 105
             $this->updateTimeslots($vacancy, $this->interval);
Please login to merge, or discard this patch.
src/Vacancy/VacancyManager.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -105,9 +105,9 @@
 block discarded – undo
105 105
         if(!is_numeric($statement['capacity']))
106 106
         {
107 107
             $vacancyValues['humanresource_id'] = $business->humanresources()
108
-                                                          ->where('slug', $statement['capacity'])
109
-                                                          ->first()
110
-                                                          ->id;
108
+                                                            ->where('slug', $statement['capacity'])
109
+                                                            ->first()
110
+                                                            ->id;
111 111
         }
112 112
         else
113 113
         {
Please login to merge, or discard this patch.
src/Presenters/AppointmentPresenter.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -66,16 +66,16 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Models/Vacancy.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -266,11 +266,11 @@  discard block
 block discarded – undo
266 266
     public function hasRoomBetween(Carbon $startAt, Carbon $finishAt)
267 267
     {
268 268
         return $this->capacity > $this->business
269
-                                      ->bookings()
270
-                                      ->active()
271
-                                      ->affectingInterval($startAt, $finishAt)
272
-                                      ->affectingHumanresource($this->humanresource_id)
273
-                                      ->count() &&
269
+                                        ->bookings()
270
+                                        ->active()
271
+                                        ->affectingInterval($startAt, $finishAt)
272
+                                        ->affectingHumanresource($this->humanresource_id)
273
+                                        ->count() &&
274 274
             ($this->start_at <= $startAt && $this->finish_at >= $finishAt);
275 275
     }
276 276
 
@@ -286,11 +286,11 @@  discard block
 block discarded – undo
286 286
         }
287 287
 
288 288
         $count = $this->business
289
-                      ->bookings()
290
-                      ->active()
291
-                      ->affectingHumanresource($this->humanresource_id)
292
-                      ->affectingInterval($startAt, $finishAt)
293
-                      ->count();
289
+                        ->bookings()
290
+                        ->active()
291
+                        ->affectingHumanresource($this->humanresource_id)
292
+                        ->affectingInterval($startAt, $finishAt)
293
+                        ->count();
294 294
 
295 295
         return $this->capacity - intval($count);
296 296
     }
Please login to merge, or discard this patch.
src/Concierge.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
         $comments = $request['comments'];
73 73
 
74 74
         $vacancies = $this->calendar()
75
-                          ->forService($service->id)
76
-                          ->withDuration($service->duration)
77
-                          ->forDate($request['date'])
78
-                          ->atTime($request['time'], $request['timezone'])
79
-                          ->find();
75
+                            ->forService($service->id)
76
+                            ->withDuration($service->duration)
77
+                            ->forDate($request['date'])
78
+                            ->atTime($request['time'], $request['timezone'])
79
+                            ->find();
80 80
 
81 81
         if ($vacancies->count() == 0) {
82 82
             // TODO: Log failure feedback message / raise exception
@@ -160,10 +160,10 @@  discard block
 block discarded – undo
160 160
         $fromDate = Carbon::parse($fromDate)->timezone($this->business->timezone);
161 161
 
162 162
         $count = $this->business
163
-                      ->vacancies()
164
-                      ->future($fromDate)
165
-                      ->until($fromDate->addDays($days))
166
-                      ->count();
163
+                        ->vacancies()
164
+                        ->future($fromDate)
165
+                        ->until($fromDate->addDays($days))
166
+                        ->count();
167 167
 
168 168
         return $count > 0;
169 169
     }
Please login to merge, or discard this patch.