Passed
Push — feature/manager-summary-view ( 752e93...abc3f8 )
by Yonathan
04:49
created
app/Models/User.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -264,10 +264,10 @@  discard block
 block discarded – undo
264 264
     }
265 265
 
266 266
     /**
267
-    * Check if the user has the specified role.
268
-    * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
269
-    * @return boolean
270
-    */
267
+     * Check if the user has the specified role.
268
+     * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
269
+     * @return boolean
270
+     */
271 271
     public function hasRole($role)
272 272
     {
273 273
         switch ($role) {
@@ -288,8 +288,8 @@  discard block
 block discarded – undo
288 288
      * Set this user to the specified role.
289 289
      *
290 290
      * @param string $role Must be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
291
-    * @return void
292
-    */
291
+     * @return void
292
+     */
293 293
     public function setRole(string $role): void
294 294
     {
295 295
         $this->user_role()->associate(UserRole::where('key', $role)->firstOrFail());
Please login to merge, or discard this patch.