@@ -30,7 +30,7 @@ |
||
30 | 30 | if (isset($view->getData()['job_application'])) { |
31 | 31 | $job_application = $view->getData()['job_application']; |
32 | 32 | if ($job_application != null && $job_application instanceof JobApplication) { |
33 | - foreach($app_tracker['items'] as $key => $value) { |
|
33 | + foreach ($app_tracker['items'] as $key => $value) { |
|
34 | 34 | $app_tracker['items'][$key]['status'] = $job_application->getSectionStatus($key); |
35 | 35 | } |
36 | 36 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $profileMenu['portfolio']['link'] = route('profile.work_samples.edit', $view->getData()['applicant']); |
27 | 27 | |
28 | 28 | //Set active on the proper item |
29 | - switch(Route::currentRouteName()) { |
|
29 | + switch (Route::currentRouteName()) { |
|
30 | 30 | case('profile.about'): |
31 | 31 | case('profile.about.edit'): |
32 | 32 | case('profile.about.update'): |
@@ -35,7 +35,7 @@ |
||
35 | 35 | // If no profile exists yet create one. |
36 | 36 | // Admins should be given an applicant and manager profile |
37 | 37 | if ($user->isApplicant() || |
38 | - $user->isAdmin() ) { |
|
38 | + $user->isAdmin()) { |
|
39 | 39 | $applicantProfile = $user->applicant; |
40 | 40 | if ($applicantProfile === null) { |
41 | 41 | $applicantProfile = new Applicant(); |
@@ -6,11 +6,11 @@ |
||
6 | 6 | class Authenticate extends Middleware |
7 | 7 | { |
8 | 8 | /** |
9 | - * Get the path the user should be redirected to when they are not authenticated. |
|
10 | - * |
|
11 | - * @param \Illuminate\Http\Request $request |
|
12 | - * @return string |
|
13 | - */ |
|
9 | + * Get the path the user should be redirected to when they are not authenticated. |
|
10 | + * |
|
11 | + * @param \Illuminate\Http\Request $request |
|
12 | + * @return string |
|
13 | + */ |
|
14 | 14 | protected function redirectTo($request) |
15 | 15 | { |
16 | 16 | if (WhichPortal::isManagerPortal()) { |
@@ -50,6 +50,6 @@ |
||
50 | 50 | ) |
51 | 51 | ); |
52 | 52 | } |
53 | - return $response; |
|
53 | + return $response; |
|
54 | 54 | } |
55 | 55 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | * Convert a job poster to the array expected by API requests, |
30 | 30 | * with all criteria, |
31 | 31 | * and with translation arrays in both languages. |
32 | - * |
|
32 | + * |
|
33 | 33 | * @param \App\Models\JobPoster $job Incoming Job Poster object. |
34 | 34 | * @return mixed[] |
35 | 35 | */ |
@@ -26,12 +26,12 @@ |
||
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
29 | - * Show the form for editing the applicant's experience |
|
30 | - * |
|
31 | - * @param \Illuminate\Http\Request $request Incoming request object. |
|
32 | - * @param \App\Models\Applicant $applicant Incoming applicant object. |
|
33 | - * @return \Illuminate\Http\Response |
|
34 | - */ |
|
29 | + * Show the form for editing the applicant's experience |
|
30 | + * |
|
31 | + * @param \Illuminate\Http\Request $request Incoming request object. |
|
32 | + * @param \App\Models\Applicant $applicant Incoming applicant object. |
|
33 | + * @return \Illuminate\Http\Response |
|
34 | + */ |
|
35 | 35 | public function edit(Request $request, Applicant $applicant) |
36 | 36 | { |
37 | 37 | return view('applicant/profile_02_experience', [ |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | // redirect to error messages element if validation fails |
139 | 139 | if (isset($request->validator) && $request->validator->fails()) { |
140 | 140 | $hash = '#managerProfileFormErrors'; |
141 | - return redirect(route('manager.profile.edit', $manager).$hash) |
|
141 | + return redirect(route('manager.profile.edit', $manager) . $hash) |
|
142 | 142 | ->withErrors($request->validator) |
143 | 143 | ->withInput(); |
144 | 144 | } |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | break; |
172 | 172 | } |
173 | 173 | |
174 | - return redirect(route('manager.profile.edit', $manager).$hash); |
|
174 | + return redirect(route('manager.profile.edit', $manager) . $hash); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | public function faq(Request $request) |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | 'description' => $question->description, |
92 | 92 | 'answer' => $answer, |
93 | 93 | 'answer_label' => $profileText['about_section']['answer_label'], |
94 | - 'input_name' => $this->answerFormInputName.'['.$question->id.']' |
|
94 | + 'input_name' => $this->answerFormInputName . '[' . $question->id . ']' |
|
95 | 95 | ]; |
96 | 96 | array_push($profileQuestionForms, $formValues); |
97 | 97 | } |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | )->first(); |
143 | 143 | if ($answer == null) { |
144 | 144 | $answer = new ApplicantProfileAnswer(); |
145 | - $answer->applicant_id =$applicant->id; |
|
145 | + $answer->applicant_id = $applicant->id; |
|
146 | 146 | $answer->applicant_profile_question_id = $question->id; |
147 | 147 | } |
148 | 148 | $answer->answer = $request->input($answerName); |