Passed
Push — task/add-manager-resource ( c74771 )
by Chris
11:48
created
app/Models/WorkSample.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,16 +45,16 @@
 block discarded – undo
45 45
 
46 46
     public function file_type()
47 47
     {
48
-        return $this->belongsTo(\App\Models\Lookup\FileType::class);
48
+        return $this->belongsTo (\App\Models\Lookup\FileType::class);
49 49
     }
50 50
 
51 51
     public function skill_declarations()
52 52
     {
53
-        return $this->belongsToMany(\App\Models\SkillDeclaration::class);
53
+        return $this->belongsToMany (\App\Models\SkillDeclaration::class);
54 54
     }
55 55
 
56 56
     public function applicant()
57 57
     {
58
-        return $this->belongsTo(\App\Models\Applicant::class);
58
+        return $this->belongsTo (\App\Models\Applicant::class);
59 59
     }
60 60
 }
Please login to merge, or discard this patch.
app/Models/WorkExperience.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
 
45 45
     public function applicant()
46 46
     {
47
-        return $this->belongsTo(\App\Models\Applicant::class);
47
+        return $this->belongsTo (\App\Models\Applicant::class);
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
app/Models/UserRole.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
 
24 24
     public function users()
25 25
     {
26
-        return $this->hasMany(\App\Models\User::class);
26
+        return $this->hasMany (\App\Models\User::class);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
app/Models/Skill.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,17 +60,17 @@  discard block
 block discarded – undo
60 60
 
61 61
     public function skill_type() // phpcs:ignore
62 62
     {
63
-        return $this->belongsTo(\App\Models\Lookup\SkillType::class);
63
+        return $this->belongsTo (\App\Models\Lookup\SkillType::class);
64 64
     }
65 65
 
66 66
     public function skill_declarations() // phpcs:ignore
67 67
     {
68
-        return $this->hasMany(\App\Models\SkillDeclaration::class);
68
+        return $this->hasMany (\App\Models\SkillDeclaration::class);
69 69
     }
70 70
 
71 71
     public function classifications() // phpcs:ignore
72 72
     {
73
-        return $this->belongsToMany(\App\Models\Classification::class)->withTimestamps();
73
+        return $this->belongsToMany (\App\Models\Classification::class)->withTimestamps ();
74 74
     }
75 75
 
76 76
     /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function toArray() : array
113 113
     {
114
-        $array = parent::toArray();
114
+        $array = parent::toArray ();
115 115
         $array['name'] = $this->name;
116 116
         $array['description'] = $this->description;
117 117
         return $array;
Please login to merge, or discard this patch.
app/Models/Criteria.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -64,22 +64,22 @@  discard block
 block discarded – undo
64 64
 
65 65
     public function criteria_type() //phpcs:ignore
66 66
     {
67
-        return $this->belongsTo(\App\Models\Lookup\CriteriaType::class);
67
+        return $this->belongsTo (\App\Models\Lookup\CriteriaType::class);
68 68
     }
69 69
 
70 70
     public function job_poster() //phpcs:ignore
71 71
     {
72
-        return $this->belongsTo(\App\Models\JobPoster::class);
72
+        return $this->belongsTo (\App\Models\JobPoster::class);
73 73
     }
74 74
 
75 75
     public function skill()
76 76
     {
77
-        return $this->belongsTo(\App\Models\Skill::class);
77
+        return $this->belongsTo (\App\Models\Skill::class);
78 78
     }
79 79
 
80 80
     public function skill_level() //phpcs:ignore
81 81
     {
82
-        return $this->belongsTo(\App\Models\Lookup\SkillLevel::class);
82
+        return $this->belongsTo (\App\Models\Lookup\SkillLevel::class);
83 83
     }
84 84
 
85 85
     /**
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     public function assessments() // phpcs:ignore
91 91
     {
92
-        return $this->hasMany(\App\Models\Assessment::class, 'criterion_id');
92
+        return $this->hasMany (\App\Models\Assessment::class, 'criterion_id');
93 93
     }
94 94
 
95 95
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     {
102 102
         $level = $this->skill_level->name;
103 103
         $type = $this->skill->skill_type->name;
104
-        return Lang::get("common/lookup/skill_level.$level.$type.name");
104
+        return Lang::get ("common/lookup/skill_level.$level.$type.name");
105 105
     }
106 106
 
107 107
     /**
@@ -113,6 +113,6 @@  discard block
 block discarded – undo
113 113
     {
114 114
         $level = $this->skill_level->name;
115 115
         $type = $this->skill->skill_type->name;
116
-        return Lang::get("common/lookup/skill_level.$level.$type.description");
116
+        return Lang::get ("common/lookup/skill_level.$level.$type.description");
117 117
     }
118 118
 }
Please login to merge, or discard this patch.
app/Models/Assessment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function criterion() // phpcs:ignore
39 39
     {
40
-        return $this->belongsTo(Criteria::class, 'criterion_id');
40
+        return $this->belongsTo (Criteria::class, 'criterion_id');
41 41
     }
42 42
 
43 43
     /**
@@ -47,6 +47,6 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function assessment_type() // phpcs:ignore
49 49
     {
50
-        return $this->belongsTo(AssessmentType::class);
50
+        return $this->belongsTo (AssessmentType::class);
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
app/Models/Degree.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@
 block discarded – undo
53 53
 
54 54
     public function degree_type()
55 55
     {
56
-        return $this->belongsTo(\App\Models\Lookup\DegreeType::class);
56
+        return $this->belongsTo (\App\Models\Lookup\DegreeType::class);
57 57
     }
58 58
 
59 59
     public function applicant()
60 60
     {
61
-        return $this->belongsTo(\App\Models\Applicant::class);
61
+        return $this->belongsTo (\App\Models\Applicant::class);
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
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.