Passed
Push — task/comment-model ( 01686c )
by Yonathan
13:23
created
app/Models/RatingGuideAnswer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function rating_guide_question(): \Illuminate\Database\Eloquent\Relations\BelongsTo
52 52
     {
53
-        return $this->belongsTo(\App\Models\RatingGuideQuestion::class);
53
+        return $this->belongsTo (\App\Models\RatingGuideQuestion::class);
54 54
     }
55 55
 
56 56
     /**
@@ -60,6 +60,6 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function criterion(): \Illuminate\Database\Eloquent\Relations\BelongsTo
62 62
     {
63
-        return $this->belongsTo(\App\Models\Criteria::class, 'criterion_id');
63
+        return $this->belongsTo (\App\Models\Criteria::class, 'criterion_id');
64 64
     }
65 65
 }
Please login to merge, or discard this patch.
app/Models/User.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -91,22 +91,22 @@  discard block
 block discarded – undo
91 91
 
92 92
     public function applicant() //phpcs:ignore
93 93
     {
94
-        return $this->hasOne(\App\Models\Applicant::class);
94
+        return $this->hasOne (\App\Models\Applicant::class);
95 95
     }
96 96
 
97 97
     public function manager() //phpcs:ignore
98 98
     {
99
-        return $this->hasOne(\App\Models\Manager::class);
99
+        return $this->hasOne (\App\Models\Manager::class);
100 100
     }
101 101
 
102 102
     public function profile_pic() //phpcs:ignore
103 103
     {
104
-        return $this->hasOne(\App\Models\ProfilePic::class);
104
+        return $this->hasOne (\App\Models\ProfilePic::class);
105 105
     }
106 106
 
107 107
     public function user_role() //phpcs:ignore
108 108
     {
109
-        return $this->belongsTo(\App\Models\UserRole::class);
109
+        return $this->belongsTo (\App\Models\UserRole::class);
110 110
     }
111 111
 
112 112
     public function setIsPriorityAttribute($value)
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function isUpgradedManager(): bool
139 139
     {
140
-        return $this->isAdmin() || $this->user_role->name === 'upgradedManager';
140
+        return $this->isAdmin () || $this->user_role->name === 'upgradedManager';
141 141
     }
142 142
 
143 143
     /**
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     public function isDemoManager(): bool
149 149
     {
150 150
         // Currently, every non-upgradedManager user can be considered a demoManager.
151
-        return !$this->isUpgradedManager();
151
+        return !$this->isUpgradedManager ();
152 152
     }
153 153
 
154 154
     /**
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     public function isManager(): bool
160 160
     {
161 161
         // Currently, every user can use the Manager portal as a demoManager.
162
-        return $this->isDemoManager() || $this->isUpgradedManager();
162
+        return $this->isDemoManager () || $this->isUpgradedManager ();
163 163
     }
164 164
 
165 165
     /**
@@ -181,11 +181,11 @@  discard block
 block discarded – undo
181 181
     {
182 182
         switch ($role) {
183 183
             case 'applicant':
184
-                return $this->isApplicant();
184
+                return $this->isApplicant ();
185 185
             case 'manager':
186
-                return $this->isManager();
186
+                return $this->isManager ();
187 187
             case 'admin':
188
-                return $this->isAdmin();
188
+                return $this->isAdmin ();
189 189
             default:
190 190
                 return false;
191 191
         }
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     */
200 200
     public function setRole(string $role): void
201 201
     {
202
-        $this->user_role()->associate(UserRole::where('name', $role)->firstOrFail());
202
+        $this->user_role ()->associate (UserRole::where ('name', $role)->firstOrFail ());
203 203
     }
204 204
 
205 205
     /**
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public function sendPasswordResetNotification($token): void
214 214
     {
215
-        $this->notify(new ResetPasswordNotification($token));
215
+        $this->notify (new ResetPasswordNotification ($token));
216 216
     }
217 217
 
218 218
     /**
@@ -234,6 +234,6 @@  discard block
 block discarded – undo
234 234
     */
235 235
     public function getFullNameAttribute(): string
236 236
     {
237
-        return $this->first_name . ' ' . $this->last_name;
237
+        return $this->first_name.' '.$this->last_name;
238 238
     }
239 239
 }
Please login to merge, or discard this patch.
app/Models/AssessmentPlanNotification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,6 @@
 block discarded – undo
42 42
      */
43 43
     public function job_poster()
44 44
     {
45
-        return $this->belongsTo(\App\Models\JobPoster::class);
45
+        return $this->belongsTo (\App\Models\JobPoster::class);
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
app/Models/RatingGuideQuestion.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function job_poster(): \Illuminate\Database\Eloquent\Relations\BelongsTo
38 38
     {
39
-        return $this->belongsTo(\App\Models\JobPoster::class);
39
+        return $this->belongsTo (\App\Models\JobPoster::class);
40 40
     }
41 41
 
42 42
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function assessment_type(): \Illuminate\Database\Eloquent\Relations\BelongsTo
48 48
     {
49
-        return $this->belongsTo(\App\Models\Lookup\AssessmentType::class);
49
+        return $this->belongsTo (\App\Models\Lookup\AssessmentType::class);
50 50
     }
51 51
 
52 52
     /**
@@ -56,6 +56,6 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function rating_guide_answers(): \Illuminate\Database\Eloquent\Relations\HasMany
58 58
     {
59
-        return $this->hasMany(\App\Models\RatingGuideAnswer::class);
59
+        return $this->hasMany (\App\Models\RatingGuideAnswer::class);
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
app/Models/BackpackUser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function sendPasswordResetNotification($token) : void
22 22
     {
23
-        $this->notify(new ResetPasswordNotification($token));
23
+        $this->notify (new ResetPasswordNotification ($token));
24 24
     }
25 25
 
26 26
     /**
Please login to merge, or discard this patch.
app/Models/JobPosterKeyTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
 
36 36
     public function job_poster() //phpcs:ignore
37 37
     {
38
-        return $this->belongsTo(\App\Models\JobPoster::class);
38
+        return $this->belongsTo (\App\Models\JobPoster::class);
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
app/Models/Lookup/AssessmentType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
      */
31 31
     public function assessments() // phpcs:ignore
32 32
     {
33
-        return $this->hasMany(Assessment::class);
33
+        return $this->hasMany (Assessment::class);
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
app/Models/JobPosterQuestion.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@
 block discarded – undo
38 38
 
39 39
     public function job_poster() //phpcs:ignore
40 40
     {
41
-        return $this->belongsTo(\App\Models\JobPoster::class);
41
+        return $this->belongsTo (\App\Models\JobPoster::class);
42 42
     }
43 43
 
44 44
     public function job_application_answers() //phpcs:ignore
45 45
     {
46
-        return $this->hasMany(\App\Models\JobApplicationAnswer::class, 'job_poster_questions_id');
46
+        return $this->hasMany (\App\Models\JobApplicationAnswer::class, 'job_poster_questions_id');
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
app/Exceptions/AdminException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function __construct(string $message, int $code, ?\Throwable $previous = null, array $links = null)
26 26
     {
27 27
         $this->links = $links;
28
-        parent::__construct($message, $code, $previous);
28
+        parent::__construct ($message, $code, $previous);
29 29
     }
30 30
 
31 31
     /**
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function render(\Illuminate\Http\Request $request)
38 38
     {
39
-        return response()->view(
39
+        return response ()->view (
40 40
             'errors/admin',
41 41
             [
42 42
                 'exception' => $this,
Please login to merge, or discard this patch.