Passed
Push — chore/format-php ( 5ef121 )
by Grant
16:21
created
database/factories/CriteriaFactory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 
9 9
 $faker_fr = Faker\Factory::create('fr');
10 10
 
11
-$factory->define(Criteria::class, function (Faker\Generator $faker) use ($faker_fr) {
11
+$factory->define(Criteria::class, function(Faker\Generator $faker) use ($faker_fr) {
12 12
     return [
13 13
         'criteria_type_id' => CriteriaType::inRandomOrder()->first()->id,
14
-        'job_poster_id' => function () {
14
+        'job_poster_id' => function(){
15 15
             return factory(JobPoster::class)->create()->id;
16 16
         },
17 17
         'skill_id' => Skill::inRandomOrder()->first()->id,
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 
9 9
 $faker_fr = Faker\Factory::create('fr');
10 10
 
11
-$factory->define(Criteria::class, function (Faker\Generator $faker) use ($faker_fr) {
11
+$factory->define(Criteria::class, function (Faker\Generator $faker) use ($faker_fr){
12 12
     return [
13 13
         'criteria_type_id' => CriteriaType::inRandomOrder()->first()->id,
14
-        'job_poster_id' => function () {
14
+        'job_poster_id' => function (){
15 15
             return factory(JobPoster::class)->create()->id;
16 16
         },
17 17
         'skill_id' => Skill::inRandomOrder()->first()->id,
Please login to merge, or discard this patch.
database/factories/WorkEnvironmentFactory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 use App\Models\Manager;
7 7
 use App\Models\Lookup\Frequency;
8 8
 
9
-$factory->define(WorkEnvironment::class, function (Faker $faker) {
9
+$factory->define(WorkEnvironment::class, function(Faker $faker){
10 10
     $faker_fr = FakerFactory::create('fr');
11 11
     return [
12 12
         'telework_allowed_frequency_id' => Frequency::inRandomOrder()->first()->id,
13 13
         'flexible_hours_frequency_id' => Frequency::inRandomOrder()->first()->id,
14 14
         'things_to_know:en' => $faker->paragraph(),
15 15
         'things_to_know:fr' => $faker_fr->paragraph(),
16
-        'manager_id' => function () {
16
+        'manager_id' => function(){
17 17
             return factory(Manager::class)->create()->id;
18 18
         }
19 19
     ];
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,14 +6,14 @@
 block discarded – undo
6 6
 use App\Models\Manager;
7 7
 use App\Models\Lookup\Frequency;
8 8
 
9
-$factory->define(WorkEnvironment::class, function (Faker $faker) {
9
+$factory->define(WorkEnvironment::class, function (Faker $faker){
10 10
     $faker_fr = FakerFactory::create('fr');
11 11
     return [
12 12
         'telework_allowed_frequency_id' => Frequency::inRandomOrder()->first()->id,
13 13
         'flexible_hours_frequency_id' => Frequency::inRandomOrder()->first()->id,
14 14
         'things_to_know:en' => $faker->paragraph(),
15 15
         'things_to_know:fr' => $faker_fr->paragraph(),
16
-        'manager_id' => function () {
16
+        'manager_id' => function (){
17 17
             return factory(Manager::class)->create()->id;
18 18
         }
19 19
     ];
Please login to merge, or discard this patch.
database/factories/JobPosterQuestionFactory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
database/factories/TeamCultureFactory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     ];
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     ];
Please login to merge, or discard this patch.
database/factories/JobPosterKeyTaskFactory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.
app/Models/JobApplication.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
     public function meetsEssentialCriteria(): bool
215 215
     {
216 216
         $essentialCriteria = $this->job_poster->criteria->filter(
217
-            function ($value, $key) {
217
+            function($value, $key){
218 218
                 return $value->criteria_type->name == 'essential';
219 219
             }
220 220
         );
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
     public function meetsEssentialCriteria(): bool
215 215
     {
216 216
         $essentialCriteria = $this->job_poster->criteria->filter(
217
-            function ($value, $key) {
217
+            function ($value, $key){
218 218
                 return $value->criteria_type->name == 'essential';
219 219
             }
220 220
         );
Please login to merge, or discard this patch.
app/Listeners/ApplicationStatusChanged.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,24 +31,24 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Listeners/LogUserUpdated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,6 +26,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Listeners/LogSuccessfulLogin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.