@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | $locale = LaravelLocalization::getCurrentLocale(); |
20 | 20 | |
21 | - switch($locale) { |
|
21 | + switch ($locale) { |
|
22 | 22 | case 'en': |
23 | 23 | $linkLocale = 'fr'; |
24 | 24 | break; |
@@ -198,12 +198,12 @@ |
||
198 | 198 | 'logout_link' => route('manager.logout'), |
199 | 199 | ]; |
200 | 200 | } elseif (WhichPortal::isAdminPortal()) { |
201 | - $loginModals = [ |
|
201 | + $loginModals = [ |
|
202 | 202 | 'modals' => Lang::get('common/login_modals'), |
203 | 203 | 'register_link' => route('register'), |
204 | 204 | 'login_link' => backpack_url('login'), |
205 | 205 | 'logout_link' => backpack_url('logout'), |
206 | - ]; |
|
206 | + ]; |
|
207 | 207 | } else { |
208 | 208 | $loginModals = [ |
209 | 209 | 'modals' => Lang::get('common/login_modals'), |
@@ -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()) { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * @param \Closure $next |
13 | 13 | * @return mixed |
14 | 14 | */ |
15 | - public function handle($request, Closure $next) { |
|
15 | + public function handle($request, Closure $next){ |
|
16 | 16 | |
17 | 17 | $response = $next($request); |
18 | 18 |
@@ -12,7 +12,8 @@ |
||
12 | 12 | * @param \Closure $next |
13 | 13 | * @return mixed |
14 | 14 | */ |
15 | - public function handle($request, Closure $next) { |
|
15 | + public function handle($request, Closure $next) |
|
16 | + { |
|
16 | 17 | |
17 | 18 | $response = $next($request); |
18 | 19 |
@@ -50,6 +50,6 @@ |
||
50 | 50 | ) |
51 | 51 | ); |
52 | 52 | } |
53 | - return $response; |
|
53 | + return $response; |
|
54 | 54 | } |
55 | 55 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | public function indexByJob(JobPoster $jobPoster) |
24 | 24 | { |
25 | - $toApiArray = array($this, 'toApiArray'); |
|
25 | + $toApiArray = array ($this, 'toApiArray'); |
|
26 | 26 | $taskArray = JobPosterKeyTask::where('job_poster_id', $jobPoster->id)->get()->map($toApiArray); |
27 | 27 | return response()->json($taskArray); |
28 | 28 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function batchUpdate(BatchUpdateJobTask $request, JobPoster $jobPoster) |
38 | 38 | { |
39 | - $toApiArray = array($this, 'toApiArray'); |
|
39 | + $toApiArray = array ($this, 'toApiArray'); |
|
40 | 40 | |
41 | 41 | $newTasks = collect($request->validated()); // Collection of JobPosterKeyTasks. |
42 | 42 | $oldTasks = $jobPoster->job_poster_key_tasks; |