@@ -65,7 +65,7 @@ |
||
65 | 65 | */ |
66 | 66 | protected function defineGates(): void |
67 | 67 | { |
68 | - Gate::define('view-assessment-plan', function ($user, $jobPoster) { |
|
68 | + Gate::define('view-assessment-plan', function($user, $jobPoster){ |
|
69 | 69 | return $user->isAdmin() || |
70 | 70 | $user->isManager() && $jobPoster->manager->user_id === $user->id; |
71 | 71 | }); |
@@ -63,7 +63,7 @@ |
||
63 | 63 | ); |
64 | 64 | |
65 | 65 | View::composer( |
66 | - ['common/relatives','common/reference','common/relatives-projects', |
|
66 | + ['common/relatives', 'common/reference', 'common/relatives-projects', |
|
67 | 67 | 'common/sample', 'common/skill', 'common/modals/create_reference'], |
68 | 68 | 'App\Http\ViewComposers\RelativeComposer' |
69 | 69 | ); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function register() |
32 | 32 | { |
33 | - $this->app->singleton(WhichPortal::class, function ($app) { |
|
33 | + $this->app->singleton(WhichPortal::class, function($app){ |
|
34 | 34 | return new WhichPortal(); |
35 | 35 | }); |
36 | 36 | } |
@@ -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; |
@@ -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(); |
@@ -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 |
@@ -126,12 +126,12 @@ |
||
126 | 126 | // TODO: replace route('manager.show',manager.id) in templates with link using slug. |
127 | 127 | $criteria = [ |
128 | 128 | 'essential' => $jobPoster->criteria->filter( |
129 | - function ($value, $key) { |
|
129 | + function($value, $key){ |
|
130 | 130 | return $value->criteria_type->name == 'essential'; |
131 | 131 | } |
132 | 132 | ), |
133 | 133 | 'asset' => $jobPoster->criteria->filter( |
134 | - function ($value, $key) { |
|
134 | + function($value, $key){ |
|
135 | 135 | return $value->criteria_type->name == 'asset'; |
136 | 136 | } |
137 | 137 | ), |