Completed
Push — master ( cea5c6...ef29db )
by Ariel
06:11
created
src/Booking/Strategies/BookingDateslotStrategy.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public function removeBookedVacancies(Collection $vacancies)
50 50
     {
51
-        $vacancies = $vacancies->reject(function ($vacancy) {
51
+        $vacancies = $vacancies->reject(function($vacancy) {
52 52
             return $vacancy->isFull();
53 53
         });
54 54
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function removeSelfBooked(Collection $vacancies, $userId)
66 66
     {
67
-        $vacancies = $vacancies->reject(function ($vacancy) use ($userId) {
67
+        $vacancies = $vacancies->reject(function($vacancy) use ($userId) {
68 68
             return $vacancy->isHoldingAnyFor($userId);
69 69
         });
70 70
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @param Collection $vacancies
48 48
      *
49
-     * @return Illuminate\Database\Eloquent\Collection
49
+     * @return Collection
50 50
      */
51 51
     public function removeBookedVacancies(Collection $vacancies)
52 52
     {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @param Collection $vacancies
64 64
      *
65
-     * @return Illuminate\Database\Eloquent\Collection
65
+     * @return Collection
66 66
      */
67 67
     public function removeSelfBooked(Collection $vacancies, $userId)
68 68
     {
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
@@ -42,16 +42,16 @@
 block discarded – undo
42 42
         }
43 43
 
44 44
         $fromTime = $this->wrappedObject
45
-                         ->vacancy
46
-                         ->start_at
47
-                         ->timezone($this->wrappedObject->business->timezone)
48
-                         ->format(config('root.time.format'));
45
+                            ->vacancy
46
+                            ->start_at
47
+                            ->timezone($this->wrappedObject->business->timezone)
48
+                            ->format(config('root.time.format'));
49 49
 
50 50
         $toTime = $this->wrappedObject
51
-                       ->vacancy
52
-                       ->finish_at
53
-                       ->timezone($this->wrappedObject->business->timezone)
54
-                       ->format(config('root.time.format'));
51
+                        ->vacancy
52
+                        ->finish_at
53
+                        ->timezone($this->wrappedObject->business->timezone)
54
+                        ->format(config('root.time.format'));
55 55
 
56 56
         return ucwords(trans('appointments.text.from_to', ['from' => $fromTime, 'to' => $toTime]));
57 57
     }
Please login to merge, or discard this patch.
src/TimegridioConciergeServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function setupRoutes(Router $router)
48 48
     {
49
-        $router->group(['namespace' => 'Timegridio\Concierge\Http\Controllers'], function ($router) {
49
+        $router->group(['namespace' => 'Timegridio\Concierge\Http\Controllers'], function($router) {
50 50
             require __DIR__.'/Http/routes.php';
51 51
         });
52 52
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     }
67 67
     private function registerConcierge()
68 68
     {
69
-        $this->app->bind('concierge', function ($app) {
69
+        $this->app->bind('concierge', function($app) {
70 70
             return new Concierge($app);
71 71
         });
72 72
     }
Please login to merge, or discard this patch.
src/Booking/Timetable.php 1 patch
Doc Comments   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -121,7 +121,6 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * Setter for interval.
123 123
      *
124
-     * @param  int $minutes
125 124
      *
126 125
      * @return $this
127 126
      */
@@ -280,8 +279,8 @@  discard block
 block discarded – undo
280 279
      * Helper method for Arr::set
281 280
      *
282 281
      * @param  array &$array
283
-     * @param  mixed $key
284
-     * @param  mixed $value
282
+     * @param  string $key
283
+     * @param  integer $value
285 284
      *
286 285
      * @return mixed
287 286
      */
@@ -294,7 +293,7 @@  discard block
 block discarded – undo
294 293
      * Helper method for Arr::get
295 294
      *
296 295
      * @param  array &$array
297
-     * @param  mixed $key
296
+     * @param  string $key
298 297
      * @param  mixed $default
299 298
      *
300 299
      * @return mixed
@@ -304,6 +303,9 @@  discard block
 block discarded – undo
304 303
         return Arr::get($array, $key, $default);
305 304
     }
306 305
 
306
+    /**
307
+     * @param string $array1
308
+     */
307 309
     private function array_substitute(&$array1, $array2)
308 310
     {
309 311
         foreach ($array1 as $key => $value) {
Please login to merge, or discard this patch.
src/VacancyManager.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * Create the Vacancy Service object.
29 29
      *
30
-     * @param Timegridio\Concierge\Models\Business $business
31 30
      */
32 31
     public function __construct()
33 32
     {
@@ -37,7 +36,7 @@  discard block
 block discarded – undo
37 36
     /**
38 37
      * Set Business.
39 38
      *
40
-     * @param Timegridio\Concierge\Models\Business $business
39
+     * @param Business $business
41 40
      */
42 41
     public function setBusiness(Business $business)
43 42
     {
@@ -78,6 +77,9 @@  discard block
 block discarded – undo
78 77
         return $this->generateAvailability($vacancies, $starting, $limit);
79 78
     }
80 79
 
80
+    /**
81
+     * @param integer $userId
82
+     */
81 83
     protected function removeAllBookedVacancies($userId, $vacancies)
82 84
     {
83 85
         $vacancies = $this->strategy->removeBookedVacancies($vacancies);
@@ -268,6 +270,9 @@  discard block
 block discarded – undo
268 270
         return $vacancy !== null;
269 271
     }
270 272
 
273
+    /**
274
+     * @param string $key
275
+     */
271 276
     protected function arrayGroupBy($key, $array)
272 277
     {
273 278
         $grouped = [];
Please login to merge, or discard this patch.
src/Concierge.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     protected function vacancyManager()
40 40
     {
41
-        if($this->vacancyManager === null)
41
+        if ($this->vacancyManager === null)
42 42
         {
43 43
             $this->vacancyManager = new VacancyManager();
44 44
         }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
     protected function makeDateTimeUTC($date, $time, $timezone = null)
80 80
     {
81
-        if($timezone === null)
81
+        if ($timezone === null)
82 82
         {
83 83
             $timezone = $this->business->timezone;
84 84
         }
Please login to merge, or discard this patch.