@@ -30,26 +30,26 @@ |
||
30 | 30 | { |
31 | 31 | $application = $event->application; |
32 | 32 | |
33 | - if (Auth::check()) { |
|
34 | - $user = Auth::user(); |
|
33 | + if (Auth::check ()) { |
|
34 | + $user = Auth::user (); |
|
35 | 35 | $userText = "{id=".$user->id.", email=".$user->email."}"; |
36 | 36 | } else { |
37 | 37 | $userText = "{null}"; |
38 | 38 | } |
39 | 39 | |
40 | 40 | //Log when application is first created |
41 | - if($application->wasRecentlyCreated) { |
|
41 | + if ($application->wasRecentlyCreated) { |
|
42 | 42 | $applicationText = "{id=".$application->id.", status=".$application->application_status->name."}"; |
43 | 43 | |
44 | - Log::notice("Application created: application ".$applicationText." has been created by user ".$userText); |
|
44 | + Log::notice ("Application created: application ".$applicationText." has been created by user ".$userText); |
|
45 | 45 | } |
46 | 46 | //Log if application status has been changed |
47 | - else if ($application->application_status_id != $application->getOriginal('application_status_id')) { |
|
48 | - $freshApplication = $application->fresh(); |
|
47 | + else if ($application->application_status_id != $application->getOriginal ('application_status_id')) { |
|
48 | + $freshApplication = $application->fresh (); |
|
49 | 49 | $applicationText = "{id=".$freshApplication->id."}"; |
50 | 50 | $statusText = "{".$freshApplication->application_status->name."}"; |
51 | 51 | |
52 | - Log::notice("Application status changed: application ".$applicationText." has been changed to ".$statusText." by user ".$userText); |
|
52 | + Log::notice ("Application status changed: application ".$applicationText." has been changed to ".$statusText." by user ".$userText); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |
@@ -27,6 +27,6 @@ |
||
27 | 27 | */ |
28 | 28 | public function handle(UserUpdated $event) |
29 | 29 | { |
30 | - Log::notice("User updated: ".$event->user); |
|
30 | + Log::notice ("User updated: ".$event->user); |
|
31 | 31 | } |
32 | 32 | } |
@@ -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 | } |
@@ -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 | } |