@@ -5,9 +5,9 @@ |
||
| 5 | 5 | |
| 6 | 6 | $faker_fr = Faker\Factory::create('fr'); |
| 7 | 7 | |
| 8 | -$factory->define(JobPosterKeyTask::class, function (Faker\Generator $faker) use ($faker_fr) { |
|
| 8 | +$factory->define(JobPosterKeyTask::class, function(Faker\Generator $faker) use ($faker_fr) { |
|
| 9 | 9 | return [ |
| 10 | - 'job_poster_id' => function () { |
|
| 10 | + 'job_poster_id' => function() { |
|
| 11 | 11 | return factory(JobPoster::class)->create()->id; |
| 12 | 12 | }, |
| 13 | 13 | 'description:en' => $faker->sentence(), |
@@ -6,30 +6,30 @@ |
||
| 6 | 6 | use App\Models\Applicant; |
| 7 | 7 | use App\Models\Project; |
| 8 | 8 | |
| 9 | -$factory->define(Reference::class, function (Faker $faker) { |
|
| 9 | +$factory->define(Reference::class, function(Faker $faker) { |
|
| 10 | 10 | return [ |
| 11 | 11 | 'name' => $faker->name(), |
| 12 | 12 | 'email' => $faker->safeEmail(), |
| 13 | 13 | 'description' => $faker->paragraphs(2, true), |
| 14 | 14 | 'relationship_id' => Relationship::inRandomOrder()->first()->id, |
| 15 | - 'applicant_id' => function () { |
|
| 15 | + 'applicant_id' => function() { |
|
| 16 | 16 | return factory(Applicant::class)->create()->id; |
| 17 | 17 | }, |
| 18 | 18 | ]; |
| 19 | 19 | }); |
| 20 | 20 | |
| 21 | -$factory->define(Project::class, function (Faker $faker) { |
|
| 21 | +$factory->define(Project::class, function(Faker $faker) { |
|
| 22 | 22 | return [ |
| 23 | 23 | 'name' => $faker->sentence(), |
| 24 | 24 | 'start_date' => $faker->dateTimeBetween('-3 years', '-1 years'), |
| 25 | 25 | 'end_date' => $faker->dateTimeBetween('-1 years', '-1 day'), |
| 26 | - 'applicant_id' => function () { |
|
| 26 | + 'applicant_id' => function() { |
|
| 27 | 27 | return factory(Applicant::class)->create()->id; |
| 28 | 28 | }, |
| 29 | 29 | ]; |
| 30 | 30 | }); |
| 31 | 31 | |
| 32 | -$factory->afterCreating(Reference::class, function ($reference) : void { |
|
| 32 | +$factory->afterCreating(Reference::class, function($reference) : void { |
|
| 33 | 33 | $reference->projects()->saveMany(factory(Project::class, 3)->make([ |
| 34 | 34 | 'applicant_id' => $reference->applicant_id |
| 35 | 35 | ])); |
@@ -5,9 +5,9 @@ |
||
| 5 | 5 | |
| 6 | 6 | $faker_fr = Faker\Factory::create('fr'); |
| 7 | 7 | |
| 8 | -$factory->define(JobPosterQuestion::class, function (Faker\Generator $faker) use ($faker_fr) { |
|
| 8 | +$factory->define(JobPosterQuestion::class, function(Faker\Generator $faker) use ($faker_fr) { |
|
| 9 | 9 | return [ |
| 10 | - 'job_poster_id' => function () { |
|
| 10 | + 'job_poster_id' => function() { |
|
| 11 | 11 | return factory(JobPoster::class)->create()->id; |
| 12 | 12 | }, |
| 13 | 13 | 'description:en' => $faker->sentence(), |
@@ -5,9 +5,9 @@ |
||
| 5 | 5 | use App\Models\Skill; |
| 6 | 6 | use App\Models\Criteria; |
| 7 | 7 | |
| 8 | -$factory->define(RatingGuideAnswer::class, function (Faker\Generator $faker) { |
|
| 8 | +$factory->define(RatingGuideAnswer::class, function(Faker\Generator $faker) { |
|
| 9 | 9 | return [ |
| 10 | - 'rating_guide_question_id' => function () { |
|
| 10 | + 'rating_guide_question_id' => function() { |
|
| 11 | 11 | return factory(RatingGuideQuestion::class)->create()->id; |
| 12 | 12 | }, |
| 13 | 13 | 'criterion_id' => null, |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | use App\Models\TeamCulture; |
| 6 | 6 | use App\Models\Manager; |
| 7 | 7 | |
| 8 | -$factory->define(TeamCulture::class, function (Faker $faker) { |
|
| 8 | +$factory->define(TeamCulture::class, function(Faker $faker) { |
|
| 9 | 9 | $faker_fr = FakerFactory::create('fr'); |
| 10 | 10 | return [ |
| 11 | 11 | 'team_size' => $faker->numberBetween(5, 15), |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | 'operating_context:fr' => $faker_fr->paragraph(), |
| 19 | 19 | 'what_we_value:fr' => $faker_fr->paragraph(), |
| 20 | 20 | 'how_we_work:fr' => $faker_fr->paragraph(), |
| 21 | - 'manager_id' => function () { |
|
| 21 | + 'manager_id' => function() { |
|
| 22 | 22 | return factory(Manager::class)->create()->id; |
| 23 | 23 | } |
| 24 | 24 | ]; |
@@ -28,6 +28,6 @@ |
||
| 28 | 28 | public function handle(Login $event) |
| 29 | 29 | { |
| 30 | 30 | $user = $event->user; |
| 31 | - Log::notice('Login by user {id=' . $user->id . ', email=' . $user->email . ', role=' . $user->user_role->name . '}'); |
|
| 31 | + Log::notice('Login by user {id='.$user->id.', email='.$user->email.', role='.$user->user_role->name.'}'); |
|
| 32 | 32 | } |
| 33 | 33 | } |
@@ -26,6 +26,6 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function handle(UserCreated $event) |
| 28 | 28 | { |
| 29 | - Log::notice('User created: ' . $event->user); |
|
| 29 | + Log::notice('User created: '.$event->user); |
|
| 30 | 30 | } |
| 31 | 31 | } |
@@ -26,6 +26,6 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function handle(UserUpdated $event) |
| 28 | 28 | { |
| 29 | - Log::notice('User updated: ' . $event->user); |
|
| 29 | + Log::notice('User updated: '.$event->user); |
|
| 30 | 30 | } |
| 31 | 31 | } |
@@ -31,24 +31,24 @@ |
||
| 31 | 31 | |
| 32 | 32 | if (Auth::check()) { |
| 33 | 33 | $user = Auth::user(); |
| 34 | - $userText = '{id=' . $user->id . ', email=' . $user->email . '}'; |
|
| 34 | + $userText = '{id='.$user->id.', email='.$user->email.'}'; |
|
| 35 | 35 | } else { |
| 36 | 36 | $userText = '{null}'; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | // Log when application is first created |
| 40 | 40 | if ($application->wasRecentlyCreated) { |
| 41 | - $applicationText = '{id=' . $application->id . ', status=' . $application->application_status->name . '}'; |
|
| 41 | + $applicationText = '{id='.$application->id.', status='.$application->application_status->name.'}'; |
|
| 42 | 42 | |
| 43 | - Log::notice('Application created: application ' . $applicationText . ' has been created by user ' . $userText); |
|
| 43 | + Log::notice('Application created: application '.$applicationText.' has been created by user '.$userText); |
|
| 44 | 44 | } |
| 45 | 45 | // Log if application status has been changed |
| 46 | 46 | elseif ($application->application_status_id != $application->getOriginal('application_status_id')) { |
| 47 | 47 | $freshApplication = $application->fresh(); |
| 48 | - $applicationText = '{id=' . $freshApplication->id . '}'; |
|
| 49 | - $statusText = '{' . $freshApplication->application_status->name . '}'; |
|
| 48 | + $applicationText = '{id='.$freshApplication->id.'}'; |
|
| 49 | + $statusText = '{'.$freshApplication->application_status->name.'}'; |
|
| 50 | 50 | |
| 51 | - Log::notice('Application status changed: application ' . $applicationText . ' has been changed to ' . $statusText . ' by user ' . $userText); |
|
| 51 | + Log::notice('Application status changed: application '.$applicationText.' has been changed to '.$statusText.' by user '.$userText); |
|
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | 54 | } |