@@ -5,16 +5,16 @@ |
||
5 | 5 | use Faker\Factory; |
6 | 6 | use Faker\Generator; |
7 | 7 | |
8 | -$faker_fr = Factory::create('fr'); |
|
8 | +$faker_fr = Factory::create ('fr'); |
|
9 | 9 | |
10 | -$factory->define(JobPosterKeyTask::class, function (Generator $faker) use ($faker_fr) { |
|
10 | +$factory->define (JobPosterKeyTask::class, function (Generator $faker) use ($faker_fr) { |
|
11 | 11 | return [ |
12 | 12 | 'job_poster_id' => function () { |
13 | - return factory(JobPoster::class)->create()->id; |
|
13 | + return factory (JobPoster::class)->create ()->id; |
|
14 | 14 | }, |
15 | 15 | 'description' => [ |
16 | - 'en' => $faker->sentence(), |
|
17 | - 'fr' => $faker_fr->sentence(), |
|
16 | + 'en' => $faker->sentence (), |
|
17 | + 'fr' => $faker_fr->sentence (), |
|
18 | 18 | ] |
19 | 19 | ]; |
20 | 20 | }); |
@@ -57,11 +57,11 @@ |
||
57 | 57 | public function toMail($notifiable) |
58 | 58 | { |
59 | 59 | return (new MailMessage) |
60 | - ->subject(Lang::get('common/notifications/password_reset.subject')) |
|
61 | - ->greeting(Lang::get('common/notifications/password_reset.greeting')) |
|
62 | - ->line(Lang::get('common/notifications/password_reset.line_1')) |
|
63 | - ->action(Lang::get('common/notifications/password_reset.action'), url(route('password.reset', $this->token, false))) |
|
64 | - ->line(Lang::get('common/notifications/password_reset.line_2')) |
|
65 | - ->salutation(Lang::get('common/notifications/password_reset.salutation', ['name' => config('mail.from.name')])); |
|
60 | + ->subject (Lang::get ('common/notifications/password_reset.subject')) |
|
61 | + ->greeting (Lang::get ('common/notifications/password_reset.greeting')) |
|
62 | + ->line (Lang::get ('common/notifications/password_reset.line_1')) |
|
63 | + ->action (Lang::get ('common/notifications/password_reset.action'), url (route ('password.reset', $this->token, false))) |
|
64 | + ->line (Lang::get ('common/notifications/password_reset.line_2')) |
|
65 | + ->salutation (Lang::get ('common/notifications/password_reset.salutation', ['name' => config ('mail.from.name')])); |
|
66 | 66 | } |
67 | 67 | } |
@@ -23,17 +23,17 @@ |
||
23 | 23 | { |
24 | 24 | // create an instance of the model to be able to get the table name |
25 | 25 | $instance = new static(); |
26 | - $conn = DB::connection($instance->getConnectionName()); |
|
27 | - $table = Config::get('database.connections.'.Config::get('database.default').'.pr e fix').$instance->getTable(); |
|
26 | + $conn = DB::connection ($instance->getConnectionName ()); |
|
27 | + $table = Config::get ('database.connections.'.Config::get ('database.default').'.pr e fix').$instance->getTable (); |
|
28 | 28 | // MongoDB columns are alway nullable |
29 | - if ($conn->getConfig()['driver'] === 'mongodb') { |
|
29 | + if ($conn->getConfig ()['driver'] === 'mongodb') { |
|
30 | 30 | return true; |
31 | 31 | } |
32 | 32 | // register the enum, json, jsonb, and citext column types, because Doctrine doesn't support it |
33 | - $conn->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string'); |
|
34 | - $conn->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('json', 'json_array'); |
|
35 | - $conn->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('jsonb', 'json_array'); |
|
36 | - $conn->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('citext', 'string'); |
|
37 | - return !$conn->getDoctrineColumn($table, $column_name)->getNotnull(); |
|
33 | + $conn->getDoctrineSchemaManager ()->getDatabasePlatform ()->registerDoctrineTypeMapping ('enum', 'string'); |
|
34 | + $conn->getDoctrineSchemaManager ()->getDatabasePlatform ()->registerDoctrineTypeMapping ('json', 'json_array'); |
|
35 | + $conn->getDoctrineSchemaManager ()->getDatabasePlatform ()->registerDoctrineTypeMapping ('jsonb', 'json_array'); |
|
36 | + $conn->getDoctrineSchemaManager ()->getDatabasePlatform ()->registerDoctrineTypeMapping ('citext', 'string'); |
|
37 | + return !$conn->getDoctrineColumn ($table, $column_name)->getNotnull (); |
|
38 | 38 | } |
39 | 39 | } |
@@ -30,18 +30,18 @@ |
||
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 | |
36 | 36 | //Don't bother logging when an applicant views their own application |
37 | 37 | if ($application->applicant->user->id != $user->id) { |
38 | 38 | $applicationText = "{id=$application->id}"; |
39 | 39 | $userText = "{id=$user->id, email=$user->email}"; |
40 | - Log::notice("Application viewed: application $applicationText viewed by user $userText."); |
|
40 | + Log::notice ("Application viewed: application $applicationText viewed by user $userText."); |
|
41 | 41 | } |
42 | 42 | } else { |
43 | 43 | $applicationText = "{id=$application->id}"; |
44 | - Log::notice("Application retrieved: application $applicationText retrieved with no user logged in."); |
|
44 | + Log::notice ("Application retrieved: application $applicationText retrieved with no user logged in."); |
|
45 | 45 | } |
46 | 46 | } |
47 | 47 | } |
@@ -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 | } |
@@ -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 | } |