@@ -31,8 +31,8 @@ |
||
31 | 31 | // If job has just been created, log if its being published now |
32 | 32 | // If job is being modified, only want to log when it goes from unpublished to published |
33 | 33 | if (($job->wasRecentlyCreated && $job->published) || |
34 | - (!$job->wasRecentlyCreated && $job->published && !$job->getOriginal('published'))) { |
|
35 | - Log::notice('Job published: job {id='.$job->id.'} published by manager {id='.$job->manager->id.', email='.$job->manager->user->email.'}'); |
|
34 | + (!$job->wasRecentlyCreated && $job->published && !$job->getOriginal ('published'))) { |
|
35 | + Log::notice ('Job published: job {id='.$job->id.'} published by manager {id='.$job->manager->id.', email='.$job->manager->user->email.'}'); |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | } |
@@ -24,14 +24,14 @@ |
||
24 | 24 | */ |
25 | 25 | public function handle(UserUpdated $event) : void |
26 | 26 | { |
27 | - if ($event->user->isManager() || |
|
28 | - $event->user->isAdmin() |
|
27 | + if ($event->user->isManager () || |
|
28 | + $event->user->isAdmin () |
|
29 | 29 | ) { |
30 | - $managerProfile = Manager::where('user_id', $event->user->id)->first(); |
|
30 | + $managerProfile = Manager::where ('user_id', $event->user->id)->first (); |
|
31 | 31 | if ($managerProfile === null) { |
32 | - $managerProfile = new Manager(); |
|
32 | + $managerProfile = new Manager (); |
|
33 | 33 | $managerProfile->user_id = $event->user->id; |
34 | - $managerProfile->save(); |
|
34 | + $managerProfile->save (); |
|
35 | 35 | } |
36 | 36 | } |
37 | 37 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function boot(): void |
43 | 43 | { |
44 | - parent::boot(); |
|
44 | + parent::boot (); |
|
45 | 45 | |
46 | 46 | // |
47 | 47 | } |
@@ -16,89 +16,89 @@ discard block |
||
16 | 16 | public function boot() |
17 | 17 | { |
18 | 18 | // Site Under Construction header bar. |
19 | - View::composer( |
|
19 | + View::composer ( |
|
20 | 20 | 'common/alert', |
21 | 21 | 'App\Http\ViewComposers\AlertComposer' |
22 | 22 | ); |
23 | 23 | |
24 | 24 | // Pass App locale to all views. |
25 | - View::share('appLocale', App::getLocale()); |
|
25 | + View::share ('appLocale', App::getLocale ()); |
|
26 | 26 | |
27 | 27 | // Governement of Canada header bar. |
28 | - View::composer( |
|
28 | + View::composer ( |
|
29 | 29 | 'common/goc', |
30 | 30 | 'App\Http\ViewComposers\GocComposer' |
31 | 31 | ); |
32 | 32 | |
33 | 33 | // Nav menu. |
34 | - View::composer( |
|
34 | + View::composer ( |
|
35 | 35 | '*', |
36 | 36 | 'App\Http\ViewComposers\MenuComposer' |
37 | 37 | ); |
38 | 38 | |
39 | 39 | // Sitewide Footer. |
40 | - View::composer( |
|
40 | + View::composer ( |
|
41 | 41 | 'common/footer', |
42 | 42 | 'App\Http\ViewComposers\FooterComposer' |
43 | 43 | ); |
44 | 44 | |
45 | - View::composer( |
|
45 | + View::composer ( |
|
46 | 46 | 'applicant/profile/menu', |
47 | 47 | 'App\Http\ViewComposers\ApplicantProfileMenuComposer' |
48 | 48 | ); |
49 | 49 | |
50 | - View::composer( |
|
50 | + View::composer ( |
|
51 | 51 | ['common/skill', 'common/relatives', 'applicant/job_post/criteria', 'common/modals/skills_need_help'], |
52 | 52 | 'App\Http\ViewComposers\SkillComposer' |
53 | 53 | ); |
54 | 54 | |
55 | - View::composer( |
|
55 | + View::composer ( |
|
56 | 56 | ['common/reference', 'common/modals/create_reference'], |
57 | 57 | 'App\Http\ViewComposers\ReferenceComposer' |
58 | 58 | ); |
59 | 59 | |
60 | - View::composer( |
|
60 | + View::composer ( |
|
61 | 61 | ['common/sample', 'common/modals/create_sample'], |
62 | 62 | 'App\Http\ViewComposers\WorkSampleComposer' |
63 | 63 | ); |
64 | 64 | |
65 | - View::composer( |
|
66 | - ['common/relatives','common/reference','common/relatives-projects', |
|
65 | + View::composer ( |
|
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 | ); |
70 | 70 | |
71 | - View::composer( |
|
71 | + View::composer ( |
|
72 | 72 | 'common/lang_menu', |
73 | 73 | 'App\Http\ViewComposers\LangMenuComposer' |
74 | 74 | ); |
75 | 75 | |
76 | - View::composer( |
|
76 | + View::composer ( |
|
77 | 77 | ['applicant/application_post/common/tracker', 'applicant/application_post/common/tracker-ajax'], |
78 | 78 | 'App\Http\ViewComposers\ApplicationTrackerComposer' |
79 | 79 | ); |
80 | 80 | |
81 | - View::composer( |
|
81 | + View::composer ( |
|
82 | 82 | 'common/degree', |
83 | 83 | 'App\Http\ViewComposers\DegreeComposer' |
84 | 84 | ); |
85 | 85 | |
86 | - View::composer( |
|
86 | + View::composer ( |
|
87 | 87 | 'common/course', |
88 | 88 | 'App\Http\ViewComposers\CourseComposer' |
89 | 89 | ); |
90 | 90 | |
91 | - View::composer( |
|
91 | + View::composer ( |
|
92 | 92 | 'common/work', |
93 | 93 | 'App\Http\ViewComposers\WorkExperienceComposer' |
94 | 94 | ); |
95 | 95 | |
96 | - View::composer( |
|
96 | + View::composer ( |
|
97 | 97 | 'manager/notification', |
98 | 98 | 'App\Http\ViewComposers\DemoNotificationComposer' |
99 | 99 | ); |
100 | 100 | |
101 | - View::composer( |
|
101 | + View::composer ( |
|
102 | 102 | 'manager/*', |
103 | 103 | 'App\Http\ViewComposers\ManagerPortalComposer' |
104 | 104 | ); |
@@ -111,10 +111,10 @@ discard block |
||
111 | 111 | */ |
112 | 112 | public function register() : void |
113 | 113 | { |
114 | - $this->app->singleton(\App\Http\ViewComposers\CourseComposer::class); |
|
115 | - $this->app->singleton(\App\Http\ViewComposers\DegreeComposer::class); |
|
116 | - $this->app->singleton(\App\Http\ViewComposers\ReferenceComposer::class); |
|
117 | - $this->app->singleton(\App\Http\ViewComposers\SkillComposer::class); |
|
118 | - $this->app->singleton(\App\Http\ViewComposers\WorkSampleComposer::class); |
|
114 | + $this->app->singleton (\App\Http\ViewComposers\CourseComposer::class); |
|
115 | + $this->app->singleton (\App\Http\ViewComposers\DegreeComposer::class); |
|
116 | + $this->app->singleton (\App\Http\ViewComposers\ReferenceComposer::class); |
|
117 | + $this->app->singleton (\App\Http\ViewComposers\SkillComposer::class); |
|
118 | + $this->app->singleton (\App\Http\ViewComposers\WorkSampleComposer::class); |
|
119 | 119 | } |
120 | 120 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | { |
29 | 29 | // |
30 | 30 | |
31 | - parent::boot(); |
|
31 | + parent::boot (); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
@@ -38,9 +38,9 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function map() |
40 | 40 | { |
41 | - $this->mapApiRoutes(); |
|
41 | + $this->mapApiRoutes (); |
|
42 | 42 | |
43 | - $this->mapWebRoutes(); |
|
43 | + $this->mapWebRoutes (); |
|
44 | 44 | |
45 | 45 | // |
46 | 46 | } |
@@ -54,9 +54,9 @@ discard block |
||
54 | 54 | */ |
55 | 55 | protected function mapWebRoutes() |
56 | 56 | { |
57 | - Route::middleware('web') |
|
58 | - ->namespace($this->namespace) |
|
59 | - ->group(base_path('routes/web.php')); |
|
57 | + Route::middleware ('web') |
|
58 | + ->namespace ($this->namespace) |
|
59 | + ->group (base_path ('routes/web.php')); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | */ |
69 | 69 | protected function mapApiRoutes() |
70 | 70 | { |
71 | - Route::prefix('api') |
|
72 | - ->middleware('api') |
|
73 | - ->namespace($this->namespace) |
|
74 | - ->group(base_path('routes/api.php')); |
|
71 | + Route::prefix ('api') |
|
72 | + ->middleware ('api') |
|
73 | + ->namespace ($this->namespace) |
|
74 | + ->group (base_path ('routes/api.php')); |
|
75 | 75 | } |
76 | 76 | } |
@@ -14,8 +14,8 @@ |
||
14 | 14 | */ |
15 | 15 | public function boot() |
16 | 16 | { |
17 | - Broadcast::routes(); |
|
17 | + Broadcast::routes (); |
|
18 | 18 | |
19 | - require base_path('routes/channels.php'); |
|
19 | + require base_path ('routes/channels.php'); |
|
20 | 20 | } |
21 | 21 | } |
@@ -16,9 +16,9 @@ discard block |
||
16 | 16 | */ |
17 | 17 | public function compose(View $view) |
18 | 18 | { |
19 | - $locale = LaravelLocalization::getCurrentLocale(); |
|
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 @@ discard block |
||
30 | 30 | break; |
31 | 31 | } |
32 | 32 | |
33 | - $view->with('lang_menu', Lang::get('common/lang_menu')); |
|
34 | - $view->with('language_link', LaravelLocalization::getLocalizedURL($linkLocale)); |
|
33 | + $view->with ('lang_menu', Lang::get ('common/lang_menu')); |
|
34 | + $view->with ('language_link', LaravelLocalization::getLocalizedURL ($linkLocale)); |
|
35 | 35 | } |
36 | 36 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function compose(View $view) |
25 | 25 | { |
26 | - $view->with('footer', Lang::get('common/footer')) |
|
27 | - ->with('date_modified', humanizeDate(new Date(self::DATE_MODIFIED, Config::get('app.local_timezone')))); |
|
26 | + $view->with ('footer', Lang::get ('common/footer')) |
|
27 | + ->with ('date_modified', humanizeDate (new Date (self::DATE_MODIFIED, Config::get ('app.local_timezone')))); |
|
28 | 28 | } |
29 | 29 | } |
@@ -29,16 +29,16 @@ |
||
29 | 29 | public function compose(View $view) : void |
30 | 30 | { |
31 | 31 | if (!$this->skillLevels) { |
32 | - $this->skillLevels = SkillLevel::all(); |
|
32 | + $this->skillLevels = SkillLevel::all (); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | if (!$this->skills) { |
36 | - $this->skills = Skill::all(); |
|
36 | + $this->skills = Skill::all (); |
|
37 | 37 | } |
38 | 38 | |
39 | - $view->with('skills', $this->skills); |
|
40 | - $view->with('skill_levels', $this->skillLevels); |
|
41 | - $view->with('skill_template', Lang::get('common/skills')); |
|
42 | - $view->with('skills_modal', Lang::get('common/skills_modals')); |
|
39 | + $view->with ('skills', $this->skills); |
|
40 | + $view->with ('skill_levels', $this->skillLevels); |
|
41 | + $view->with ('skill_template', Lang::get ('common/skills')); |
|
42 | + $view->with ('skills_modal', Lang::get ('common/skills_modals')); |
|
43 | 43 | } |
44 | 44 | } |