@@ -40,7 +40,7 @@ |
||
| 40 | 40 | 'searchLogic' => function ($query, $column, $searchTerm) { |
| 41 | 41 | $query->orWhereHas('user', function ($q) use ($searchTerm) { |
| 42 | 42 | $q->where('first_name', 'ilike', '%'.$searchTerm.'%') |
| 43 | - ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); |
|
| 43 | + ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); |
|
| 44 | 44 | }); |
| 45 | 45 | } |
| 46 | 46 | ]); |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | 'label' => 'Full Name', |
| 40 | 40 | 'searchLogic' => function ($query, $column, $searchTerm) { |
| 41 | 41 | $query->orWhereHas('user', function ($q) use ($searchTerm) { |
| 42 | - $q->where('first_name', 'ilike', '%'.$searchTerm.'%') |
|
| 43 | - ->orWhere('last_name', 'ilike', '%'.$searchTerm.'%'); |
|
| 42 | + $q->where('first_name', 'ilike', '%' . $searchTerm . '%') |
|
| 43 | + ->orWhere('last_name', 'ilike', '%' . $searchTerm . '%'); |
|
| 44 | 44 | }); |
| 45 | 45 | } |
| 46 | 46 | ]); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | 'label' => 'Email', |
| 52 | 52 | 'searchLogic' => function ($query, $column, $searchTerm) { |
| 53 | 53 | $query->orWhereHas('user', function ($q) use ($searchTerm) { |
| 54 | - $q->where('email', 'ilike', '%'.$searchTerm.'%'); |
|
| 54 | + $q->where('email', 'ilike', '%' . $searchTerm . '%'); |
|
| 55 | 55 | }); |
| 56 | 56 | } |
| 57 | 57 | ]); |
@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | $files = Resource::all(); |
| 30 | 30 | foreach ($files as $file) { |
| 31 | 31 | array_push($resources, [ |
| 32 | - 'link' => asset(Storage::url($file->file)), |
|
| 33 | - 'title' => '', |
|
| 34 | - 'text' => $file->name, |
|
| 32 | + 'link' => asset(Storage::url($file->file)), |
|
| 33 | + 'title' => '', |
|
| 34 | + 'text' => $file->name, |
|
| 35 | 35 | ]); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -44,11 +44,11 @@ discard block |
||
| 44 | 44 | $portal = WhichPortal::isHrPortal() ? 'hr' : 'manager'; |
| 45 | 45 | |
| 46 | 46 | return view('common/resources', [ |
| 47 | - // Localized strings. |
|
| 48 | - 'resources_template' => $resources_template, |
|
| 49 | - 'portal' => $portal, |
|
| 50 | - // List of resource downloads. |
|
| 51 | - 'resources' => $resources, |
|
| 47 | + // Localized strings. |
|
| 48 | + 'resources_template' => $resources_template, |
|
| 49 | + 'portal' => $portal, |
|
| 50 | + // List of resource downloads. |
|
| 51 | + 'resources' => $resources, |
|
| 52 | 52 | ]); |
| 53 | 53 | } |
| 54 | 54 | } |
@@ -75,9 +75,9 @@ |
||
| 75 | 75 | |
| 76 | 76 | $position = $this->job->getTranslations('title'); |
| 77 | 77 | $classification = $this->job->getClassificationMessageAttribute(); |
| 78 | - $subject = Lang::get('common/notifications/screen_candidates.subject', [ 'position' => $position['en'], 'classification' => $classification ], 'en') |
|
| 78 | + $subject = Lang::get('common/notifications/screen_candidates.subject', ['position' => $position['en'], 'classification' => $classification], 'en') |
|
| 79 | 79 | . ' / ' |
| 80 | - . Lang::get('common/notifications/screen_candidates.subject', [ 'position' => $position['fr'], 'classification' => $classification ], 'fr'); |
|
| 80 | + . Lang::get('common/notifications/screen_candidates.subject', ['position' => $position['fr'], 'classification' => $classification], 'fr'); |
|
| 81 | 81 | |
| 82 | 82 | return $this->subject($subject) |
| 83 | 83 | ->cc($hr_advisors_emails) |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | // Validate job application answer. |
| 31 | 31 | $validatedData = $request->validate([ |
| 32 | - 'answer' => 'required|nullable|string', |
|
| 32 | + 'answer' => 'required|nullable|string', |
|
| 33 | 33 | ]); |
| 34 | 34 | |
| 35 | 35 | // Update existing object with data and save to db. |
@@ -249,7 +249,7 @@ |
||
| 249 | 249 | $rules = $this->addNestedValidatorRules( |
| 250 | 250 | 'job_application_answers.*', |
| 251 | 251 | $answerValidator->rules(), |
| 252 | - [ 'job_application_answers.*.answer' => ['required', 'string', new WordLimitRule(250)]] |
|
| 252 | + ['job_application_answers.*.answer' => ['required', 'string', new WordLimitRule(250)]] |
|
| 253 | 253 | ); |
| 254 | 254 | |
| 255 | 255 | // Validate that each question has been answered. |
@@ -536,7 +536,7 @@ |
||
| 536 | 536 | * Attach steps to new application (version 2). |
| 537 | 537 | * |
| 538 | 538 | * @return void |
| 539 | - */ |
|
| 539 | + */ |
|
| 540 | 540 | public function attachSteps(): void |
| 541 | 541 | { |
| 542 | 542 | if ($this->touched_application_steps->isEmpty()) { |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | * |
| 16 | 16 | * @param \App\Models\JobApplication $application Incoming Application object. |
| 17 | 17 | * @return \Illuminate\Http\Response |
| 18 | - */ |
|
| 18 | + */ |
|
| 19 | 19 | public function show(JobApplication $jobApplication, string $requestedStep = null) |
| 20 | 20 | { |
| 21 | 21 | $jobApplicationSteps = $jobApplication->jobApplicationSteps(); |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | 'application' => $jobApplication, |
| 93 | 93 | 'application_template' => Lang::get( |
| 94 | 94 | 'applicant/application_template', |
| 95 | - ['security_clearance' => $jobPoster->security_clearance->value ] |
|
| 95 | + ['security_clearance' => $jobPoster->security_clearance->value] |
|
| 96 | 96 | ), |
| 97 | 97 | 'jobPoster' => $jobPoster, |
| 98 | 98 | ] |
@@ -19,13 +19,13 @@ |
||
| 19 | 19 | class TouchedApplicationStep extends BaseModel |
| 20 | 20 | { |
| 21 | 21 | protected $casts = [ |
| 22 | - 'job_application_id' => 'int', |
|
| 23 | - 'step_id' => 'int', |
|
| 24 | - 'touched' => 'boolean', |
|
| 22 | + 'job_application_id' => 'int', |
|
| 23 | + 'step_id' => 'int', |
|
| 24 | + 'touched' => 'boolean', |
|
| 25 | 25 | ]; |
| 26 | 26 | |
| 27 | 27 | protected $fillable = [ |
| 28 | - 'touched' |
|
| 28 | + 'touched' |
|
| 29 | 29 | ]; |
| 30 | 30 | |
| 31 | 31 | public function job_application() //phpcs:ignore |
@@ -521,14 +521,14 @@ discard block |
||
| 521 | 521 | if (!empty($skillsArray)) { |
| 522 | 522 | $lastSkill = end($skillsArray); |
| 523 | 523 | foreach ($skillsArray as $skillItem) { |
| 524 | - $skillsString .= $skillItem['skill'].' - '.$skillItem['level'].($skillItem == $lastSkill ? '.' : ', '); |
|
| 524 | + $skillsString .= $skillItem['skill'] . ' - ' . $skillItem['level'] . ($skillItem == $lastSkill ? '.' : ', '); |
|
| 525 | 525 | } |
| 526 | 526 | } |
| 527 | 527 | |
| 528 | 528 | $benefitsString = ''; |
| 529 | 529 | if (is_array($jobLang['structured_data']['benefits'])) { |
| 530 | 530 | foreach ($jobLang['structured_data']['benefits'] as $benefit) { |
| 531 | - $benefitsString .= $benefit.' '; |
|
| 531 | + $benefitsString .= $benefit . ' '; |
|
| 532 | 532 | } |
| 533 | 533 | } |
| 534 | 534 | |
@@ -536,12 +536,12 @@ discard block |
||
| 536 | 536 | if (is_array($jobPoster['job_poster_key_tasks'])) { |
| 537 | 537 | $lastTask = end($jobPoster['job_poster_key_tasks']); |
| 538 | 538 | foreach ($jobPoster['job_poster_key_tasks'] as $task) { |
| 539 | - $tasksString .= $task['description'].' '.($task == $lastTask ? '' : ' | '); |
|
| 539 | + $tasksString .= $task['description'] . ' ' . ($task == $lastTask ? '' : ' | '); |
|
| 540 | 540 | } |
| 541 | 541 | } |
| 542 | 542 | |
| 543 | - $securityClearanceString = $jobLang['structured_data']['security_clearance_requirement_level'].': ' |
|
| 544 | - .$jobPoster['security_clearance']['value'].'. ' |
|
| 543 | + $securityClearanceString = $jobLang['structured_data']['security_clearance_requirement_level'] . ': ' |
|
| 544 | + .$jobPoster['security_clearance']['value'] . '. ' |
|
| 545 | 545 | .$jobLang['structured_data']['security_clearance_requirement_description']; |
| 546 | 546 | |
| 547 | 547 | $structuredData = [ |