Completed
Push — master ( cbf465...1405ab )
by Ariel
06:38
created
src/Models/Contact.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * is profile of User.
33 33
      *
34
-     * @return Illuminate\Database\Query Relationship Contact belongs to User query
34
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo Relationship Contact belongs to User query
35 35
      */
36 36
     public function user()
37 37
     {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * belongs to Business.
43 43
      *
44
-     * @return Illuminate\Database\Query Relationship Contact is part of Businesses addressbooks query
44
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany Relationship Contact is part of Businesses addressbooks query
45 45
      */
46 46
     public function businesses()
47 47
     {
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * has Appointments.
53 53
      *
54
-     * @return Illuminate\Database\Query Relationship Contact has booked Appointments query
54
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany Relationship Contact has booked Appointments query
55 55
      */
56 56
     public function appointments()
57 57
     {
Please login to merge, or discard this patch.
src/Models/Preference.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     /**
37 37
      * [getDefault description].
38 38
      *
39
-     * @param [type] $model [description]
39
+     * @param \Timegridio\Concierge\Traits\Preferenceable $model [description]
40 40
      * @param [type] $key   [description]
41 41
      *
42 42
      * @return [type] [description]
Please login to merge, or discard this patch.
src/Models/Service.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * Belongs to service type.
25 25
      *
26
-     * @return Illuminate\Database\Query Relationship Service belongs to type query
26
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo Relationship Service belongs to type query
27 27
      */
28 28
     public function type()
29 29
     {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * belongs to Business.
49 49
      *
50
-     * @return Illuminate\Database\Query Relationship Service belongs to Business query
50
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo Relationship Service belongs to Business query
51 51
      */
52 52
     public function business()
53 53
     {
Please login to merge, or discard this patch.
src/Models/Vacancy.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * belongs to Business.
37 37
      *
38
-     * @return Illuminate\Database\Query Relationship Vacancy belongs to Business query
38
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo Relationship Vacancy belongs to Business query
39 39
      */
40 40
     public function business()
41 41
     {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * for Service.
47 47
      *
48
-     * @return Illuminate\Database\Query Relationship Vacancy is for providing Service query
48
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo Relationship Vacancy is for providing Service query
49 49
      */
50 50
     public function service()
51 51
     {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     /**
56 56
      * holds many Appointments.
57 57
      *
58
-     * @return Illuminate\Database\Query Relationship Vacancy belongs to Business query
58
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany Relationship Vacancy belongs to Business query
59 59
      */
60 60
     public function appointments()
61 61
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     public function scopeForDateTime($query, Carbon $datetime)
91 91
     {
92 92
         return $query->where('start_at', '<=', $datetime->toDateTimeString())
93
-                     ->where('finish_at', '>=', $datetime->toDateTimeString());
93
+                        ->where('finish_at', '>=', $datetime->toDateTimeString());
94 94
     }
95 95
 
96 96
     /**
@@ -195,9 +195,9 @@  discard block
 block discarded – undo
195 195
     public function hasRoomBetween(Carbon $startAt, Carbon $finishAt)
196 196
     {
197 197
         return $this->capacity > $this->appointments()
198
-                                      ->active()
199
-                                      ->affectingInterval($startAt, $finishAt)
200
-                                      ->count() &&
198
+                                        ->active()
199
+                                        ->affectingInterval($startAt, $finishAt)
200
+                                        ->count() &&
201 201
             ($this->start_at <= $startAt && $this->finish_at >= $finishAt);
202 202
     }
203 203
 
Please login to merge, or discard this patch.
src/Models/Appointment.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -542,19 +542,19 @@
 block discarded – undo
542 542
 
543 543
                 $query->where(function ($query) use ($startAt, $finishAt) {
544 544
                     $query->where('finish_at', '>=', $finishAt->timezone('UTC'))
545
-                          ->where('start_at', '<=', $startAt->timezone('UTC'));
545
+                            ->where('start_at', '<=', $startAt->timezone('UTC'));
546 546
                 })
547 547
                 ->orWhere(function ($query) use ($startAt, $finishAt) {
548 548
                     $query->where('finish_at', '<', $finishAt->timezone('UTC'))
549
-                          ->where('finish_at', '>', $startAt->timezone('UTC'));
549
+                            ->where('finish_at', '>', $startAt->timezone('UTC'));
550 550
                 })
551 551
                 ->orWhere(function ($query) use ($startAt, $finishAt) {
552 552
                     $query->where('start_at', '>', $startAt->timezone('UTC'))
553
-                          ->where('start_at', '<', $finishAt->timezone('UTC'));
553
+                            ->where('start_at', '<', $finishAt->timezone('UTC'));
554 554
                 })
555 555
                 ->orWhere(function ($query) use ($startAt, $finishAt) {
556 556
                     $query->where('start_at', '>', $startAt->timezone('UTC'))
557
-                          ->where('finish_at', '<', $finishAt->timezone('UTC'));
557
+                            ->where('finish_at', '<', $finishAt->timezone('UTC'));
558 558
                 });
559 559
 
560 560
             });
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     /**
82 82
      * Get the issuer (the User that generated the Appointment).
83 83
      *
84
-     * @return Illuminate\Database\Eloquent\belongsTo
84
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
85 85
      */
86 86
     public function issuer()
87 87
     {
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     /**
92 92
      * Get the target Contact (for whom is reserved the Appointment).
93 93
      *
94
-     * @return Illuminate\Database\Eloquent\belongsTo
94
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
95 95
      */
96 96
     public function contact()
97 97
     {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     /**
102 102
      * Get the holding Business (that has taken the reservation).
103 103
      *
104
-     * @return Illuminate\Database\Eloquent\belongsTo
104
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
105 105
      */
106 106
     public function business()
107 107
     {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * Get the reserved Service.
113 113
      *
114
-     * @return Illuminate\Database\Eloquent\belongsTo
114
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
115 115
      */
116 116
     public function service()
117 117
     {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      * Get the Vacancy (that justifies the availability of resources for the
123 123
      * Appointment generation).
124 124
      *
125
-     * @return Illuminate\Database\Eloquent\belongsTo
125
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
126 126
      */
127 127
     public function vacancy()
128 128
     {
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/Traits/Preferenceable.php 2 patches
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.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      * Cast value.
43 43
      *
44 44
      * @param  mixed $value
45
-     * @param  mixed $type
45
+     * @param  string $type
46 46
      *
47 47
      * @return mixed Value.
48 48
      */
Please login to merge, or discard this patch.
src/Concierge.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@
 block discarded – undo
44 44
         $comments = $request['comments'];
45 45
 
46 46
         $vacancies = $this->calendar()
47
-                          ->forService($service->id)
48
-                          ->forDate($request['date'])
49
-                          ->atTime($request['time'])
50
-                          ->find();
47
+                            ->forService($service->id)
48
+                            ->forDate($request['date'])
49
+                            ->atTime($request['time'])
50
+                            ->find();
51 51
 
52 52
         if ($vacancies->count() == 0) {
53 53
             // Log failure feedback message
Please login to merge, or discard this patch.
src/Models/Business.php 1 patch
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * Belongs to a Category.
66 66
      *
67
-     * @return Illuminate\Database\Eloquent\Relations\BelongsTo
67
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
68 68
      */
69 69
     public function category()
70 70
     {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * Provides a catalog of Services.
89 89
      *
90
-     * @return Illuminate\Database\Eloquent\Relations\HasMany
90
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
91 91
      */
92 92
     public function services()
93 93
     {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * Provides Services of Types.
99 99
      *
100
-     * @return Illuminate\Database\Eloquent\Relations\HasMany
100
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
101 101
      */
102 102
     public function servicetypes()
103 103
     {
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     /**
108 108
      * Publishes Vacancies.
109 109
      *
110
-     * @return Illuminate\Database\Eloquent\hasMany
110
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
111 111
      */
112 112
     public function vacancies()
113 113
     {
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * Holds booked Appointments.
119 119
      *
120
-     * @return Illuminate\Database\Eloquent\hasMany
120
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
121 121
      */
122 122
     public function bookings()
123 123
     {
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     /**
128 128
      * Is owned by Users.
129 129
      *
130
-     * @return Illuminate\Database\Eloquent\belongsToMany
130
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
131 131
      */
132 132
     public function owners()
133 133
     {
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     /**
250 250
      * Set Postal Address.
251 251
      *
252
-     * @param string $postal_address Postal address
252
+     * @param string $postalAddress Postal address
253 253
      */
254 254
     public function setPostalAddressAttribute($postalAddress)
255 255
     {
@@ -259,7 +259,6 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * Set Social Facebook.
261 261
      *
262
-     * @param string $social_facebook Facebook User URL
263 262
      */
264 263
     public function setSocialFacebookAttribute($facebookPageUrl)
265 264
     {
Please login to merge, or discard this patch.