@@ -190,10 +190,10 @@ discard block |
||
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | /** |
| 193 | - * Check if the user has the specified role. |
|
| 194 | - * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'. |
|
| 195 | - * @return boolean |
|
| 196 | - */ |
|
| 193 | + * Check if the user has the specified role. |
|
| 194 | + * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'. |
|
| 195 | + * @return boolean |
|
| 196 | + */ |
|
| 197 | 197 | public function hasRole($role) |
| 198 | 198 | { |
| 199 | 199 | switch ($role) { |
@@ -214,8 +214,8 @@ discard block |
||
| 214 | 214 | * Set this user to the specified role. |
| 215 | 215 | * |
| 216 | 216 | * @param string $role Must be either 'applicant', 'manager', 'hr_advisor' or 'admin'. |
| 217 | - * @return void |
|
| 218 | - */ |
|
| 217 | + * @return void |
|
| 218 | + */ |
|
| 219 | 219 | public function setRole(string $role): void |
| 220 | 220 | { |
| 221 | 221 | $this->user_role()->associate(UserRole::where('name', $role)->firstOrFail()); |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | * Returns a user's full name. |
| 251 | 251 | * |
| 252 | 252 | * @return string |
| 253 | - */ |
|
| 253 | + */ |
|
| 254 | 254 | public function getFullNameAttribute(): string |
| 255 | 255 | { |
| 256 | 256 | return $this->first_name . ' ' . $this->last_name; |
@@ -238,12 +238,12 @@ |
||
| 238 | 238 | 'logout_link' => route('hr_advisor.logout'), |
| 239 | 239 | ]; |
| 240 | 240 | } elseif (WhichPortal::isAdminPortal()) { |
| 241 | - $loginModals = [ |
|
| 241 | + $loginModals = [ |
|
| 242 | 242 | 'modals' => Lang::get('common/login_modals'), |
| 243 | 243 | 'register_link' => route('register'), |
| 244 | 244 | 'login_link' => backpack_url('login'), |
| 245 | 245 | 'logout_link' => backpack_url('logout'), |
| 246 | - ]; |
|
| 246 | + ]; |
|
| 247 | 247 | } else { |
| 248 | 248 | $loginModals = [ |
| 249 | 249 | 'modals' => Lang::get('common/login_modals'), |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | // Ensure the user can make answers, question exists, and user is the owner of the question it answers. |
| 21 | 21 | if ($this->user()->can('create', RatingGuideAnswer::class)) { |
| 22 | - $questionId = (int) $this->input('rating_guide_question_id'); |
|
| 22 | + $questionId = (int)$this->input('rating_guide_question_id'); |
|
| 23 | 23 | if ($questionId) { |
| 24 | 24 | $question = RatingGuideQuestion::find($questionId); |
| 25 | 25 | return $question && $this->user()->can('update', $question); |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | use Illuminate\Support\Facades\Validator; |
| 8 | 8 | use Illuminate\Validation\Rule; |
| 9 | 9 | |
| 10 | -class JobApplicationAnswerValidator { |
|
| 10 | +class JobApplicationAnswerValidator{ |
|
| 11 | 11 | |
| 12 | 12 | protected $application; |
| 13 | 13 | protected $questionIds; |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @property \App\Models\WorkplacePhotoCaption $workplace_photo_caption |
| 21 | 21 | */ |
| 22 | -class WorkplacePhoto extends BaseModel { |
|
| 22 | +class WorkplacePhoto extends BaseModel{ |
|
| 23 | 23 | |
| 24 | 24 | protected $casts = [ |
| 25 | 25 | 'image' => 'boolean', |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @property \App\Models\WorkEnvironment $work_environment |
| 22 | 22 | */ |
| 23 | -class WorkEnvironmentTranslation extends BaseModel { |
|
| 23 | +class WorkEnvironmentTranslation extends BaseModel{ |
|
| 24 | 24 | |
| 25 | 25 | protected $fillable = [ |
| 26 | 26 | 'things_to_know' |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @property \App\Models\JobPosterQuestion $job_poster_question |
| 22 | 22 | */ |
| 23 | -class JobPosterQuestionTranslation extends BaseModel { |
|
| 23 | +class JobPosterQuestionTranslation extends BaseModel{ |
|
| 24 | 24 | |
| 25 | 25 | protected $casts = [ |
| 26 | 26 | 'job_poster_question_id' => 'int' |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @property \App\Models\Applicant $applicant |
| 21 | 21 | * @property \App\Models\Lookup\ApplicantProfileQuestion $applicant_profile_question |
| 22 | 22 | */ |
| 23 | -class ApplicantProfileAnswer extends BaseModel { |
|
| 23 | +class ApplicantProfileAnswer extends BaseModel{ |
|
| 24 | 24 | |
| 25 | 25 | protected $casts = [ |
| 26 | 26 | 'applicant_id' => 'int', |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * @property \App\Models\WorkEnvironment $work_environment |
| 22 | 22 | * @property \App\Models\WorkplacePhoto $workplace_photo |
| 23 | 23 | */ |
| 24 | -class WorkplacePhotoCaption extends BaseModel { |
|
| 24 | +class WorkplacePhotoCaption extends BaseModel{ |
|
| 25 | 25 | |
| 26 | 26 | protected $casts = [ |
| 27 | 27 | 'work_environment_id' => 'int', |