Completed
Push — master ( 007fb6...849782 )
by Ariel
16:17
created
src/Calendar/TimeslotCalendar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 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
         }
Please login to merge, or discard this patch.
src/Vacancy/VacancyManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -97,6 +97,9 @@
 block discarded – undo
97 97
         return $vacancy !== null;
98 98
     }
99 99
 
100
+    /**
101
+     * @param string $key
102
+     */
100 103
     protected function arrayGroupBy($key, $array)
101 104
     {
102 105
         $grouped = [];
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
@@ -54,16 +54,16 @@
 block discarded – undo
54 54
         }
55 55
 
56 56
         $fromTime = $this->wrappedObject
57
-                         ->vacancy
58
-                         ->start_at
59
-                         ->timezone($this->wrappedObject->business->timezone)
60
-                         ->format($timeFormat);
57
+                            ->vacancy
58
+                            ->start_at
59
+                            ->timezone($this->wrappedObject->business->timezone)
60
+                            ->format($timeFormat);
61 61
 
62 62
         $toTime = $this->wrappedObject
63
-                       ->vacancy
64
-                       ->finish_at
65
-                       ->timezone($this->wrappedObject->business->timezone)
66
-                       ->format($timeFormat);
63
+                        ->vacancy
64
+                        ->finish_at
65
+                        ->timezone($this->wrappedObject->business->timezone)
66
+                        ->format($timeFormat);
67 67
 
68 68
         return ['from' => $fromTime, 'to' => $toTime];
69 69
     }
Please login to merge, or discard this patch.
src/Presenters/BusinessPresenter.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@
 block discarded – undo
68 68
      */
69 69
     public function industryIcon()
70 70
     {
71
-        $src = ($this->wrappedObject->pref('cover_photo_url')) ?:
72
-            asset('/img/industries/'.$this->wrappedObject->category->slug.'.png');
71
+        $src = ($this->wrappedObject->pref('cover_photo_url')) ?: asset('/img/industries/'.$this->wrappedObject->category->slug.'.png');
73 72
 
74 73
         return "<img class=\"img-responsive center-block\" src=\"{$src}\"/>";
75 74
     }
Please login to merge, or discard this patch.