@@ -264,10 +264,10 @@ discard block |
||
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 |
||
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()); |