| @@ -24,7 +24,7 @@ | ||
| 24 | 24 | // create an instance of the model to be able to get the table name | 
| 25 | 25 | $instance = new static(); | 
| 26 | 26 | $conn = DB::connection($instance->getConnectionName()); | 
| 27 | -        $table = Config::get('database.connections.'.Config::get('database.default').'.pr e fix').$instance->getTable(); | |
| 27 | +        $table = Config::get('database.connections.' . Config::get('database.default') . '.pr e fix') . $instance->getTable(); | |
| 28 | 28 | // MongoDB columns are alway nullable | 
| 29 | 29 |          if ($conn->getConfig()['driver'] === 'mongodb') { | 
| 30 | 30 | return true; | 
| @@ -29,6 +29,6 @@ | ||
| 29 | 29 | public function handle(Login $event) | 
| 30 | 30 |      { | 
| 31 | 31 | $user = $event->user; | 
| 32 | -        Log::notice("Login by user {id=".$user->id.", email=".$user->email.", role=".$user->user_role->name."}"); | |
| 32 | +        Log::notice("Login by user {id=" . $user->id . ", email=" . $user->email . ", role=" . $user->user_role->name . "}"); | |
| 33 | 33 | } | 
| 34 | 34 | } | 
| @@ -27,6 +27,6 @@ | ||
| 27 | 27 | */ | 
| 28 | 28 | public function handle(UserCreated $event) | 
| 29 | 29 |      { | 
| 30 | -        Log::notice("User created: ".$event->user); | |
| 30 | +        Log::notice("User created: " . $event->user); | |
| 31 | 31 | } | 
| 32 | 32 | } | 
| @@ -32,24 +32,24 @@ | ||
| 32 | 32 | |
| 33 | 33 |          if (Auth::check()) { | 
| 34 | 34 | $user = Auth::user(); | 
| 35 | -            $userText = "{id=".$user->id.", email=".$user->email."}"; | |
| 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) { | |
| 42 | -            $applicationText = "{id=".$application->id.", status=".$application->application_status->name."}"; | |
| 41 | +        if ($application->wasRecentlyCreated) { | |
| 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 | 47 |          else if ($application->application_status_id != $application->getOriginal('application_status_id')) { | 
| 48 | 48 | $freshApplication = $application->fresh(); | 
| 49 | -            $applicationText = "{id=".$freshApplication->id."}"; | |
| 50 | -            $statusText = "{".$freshApplication->application_status->name."}"; | |
| 49 | +            $applicationText = "{id=" . $freshApplication->id . "}"; | |
| 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 | } | 
| @@ -32,7 +32,7 @@ | ||
| 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 | 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.'}'); | |
| 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 | } | 
| @@ -64,7 +64,7 @@ | ||
| 64 | 64 | |
| 65 | 65 | View::composer( | 
| 66 | 66 | ['common/relatives','common/reference','common/relatives-projects', | 
| 67 | - 'common/sample', 'common/skill', 'common/modals/create_reference'], | |
| 67 | + 'common/sample', 'common/skill', 'common/modals/create_reference'], | |
| 68 | 68 | 'App\Http\ViewComposers\RelativeComposer' | 
| 69 | 69 | ); | 
| 70 | 70 | |
| @@ -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 | ); | 
| @@ -55,8 +55,8 @@ discard block | ||
| 55 | 55 | protected function mapWebRoutes() | 
| 56 | 56 |      { | 
| 57 | 57 |          Route::middleware('web') | 
| 58 | - ->namespace($this->namespace) | |
| 59 | -             ->group(base_path('routes/web.php')); | |
| 58 | + ->namespace($this->namespace) | |
| 59 | +                ->group(base_path('routes/web.php')); | |
| 60 | 60 | } | 
| 61 | 61 | |
| 62 | 62 | /** | 
| @@ -69,8 +69,8 @@ discard block | ||
| 69 | 69 | protected function mapApiRoutes() | 
| 70 | 70 |      { | 
| 71 | 71 |          Route::prefix('api') | 
| 72 | -             ->middleware('api') | |
| 73 | - ->namespace($this->namespace) | |
| 74 | -             ->group(base_path('routes/api.php')); | |
| 72 | +                ->middleware('api') | |
| 73 | + ->namespace($this->namespace) | |
| 74 | +                ->group(base_path('routes/api.php')); | |
| 75 | 75 | } | 
| 76 | 76 | } | 
| @@ -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; |