Passed
Push — task/common-translation-packag... ( 519c3a...19e78f )
by Chris
21:06 queued 13:03
created
database/factories/JobApplicationAnswerFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,12 +5,12 @@
 block discarded – undo
5 5
 use App\Models\JobApplication;
6 6
 use App\Models\JobApplicationAnswer;
7 7
 
8
-$factory->define(JobApplicationAnswer::class, function (Faker\Generator $faker) {
8
+$factory->define(JobApplicationAnswer::class, function(Faker\Generator $faker) {
9 9
     return [
10
-        'job_poster_question_id' => function () {
10
+        'job_poster_question_id' => function() {
11 11
             return factory(JobPosterQuestion::class)->create()->id;
12 12
         },
13
-        'job_application_id' => function () {
13
+        'job_application_id' => function() {
14 14
             return factory(JobApplication::class)->create()->id;
15 15
         },
16 16
         'answer' => $faker->paragraph()
Please login to merge, or discard this patch.
database/factories/ReferenceFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,30 +6,30 @@
 block discarded – undo
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
     ]));
Please login to merge, or discard this patch.
database/factories/RatingGuideAnswerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
database/factories/JobPosterQuestionFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
 
8 8
 $faker_fr = Factory::create('fr');
9 9
 
10
-$factory->define(JobPosterQuestion::class, function (Generator $faker) use ($faker_fr) {
10
+$factory->define(JobPosterQuestion::class, function(Generator $faker) use ($faker_fr) {
11 11
     return [
12
-        'job_poster_id' => function () {
12
+        'job_poster_id' => function() {
13 13
             return factory(JobPoster::class)->create()->id;
14 14
         },
15 15
         'question' => [
Please login to merge, or discard this patch.
database/factories/CriteriaFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 block discarded – undo
10 10
 
11 11
 $faker_fr = Factory::create('fr');
12 12
 
13
-$factory->define(Criteria::class, function (Generator $faker) use ($faker_fr) {
13
+$factory->define(Criteria::class, function(Generator $faker) use ($faker_fr) {
14 14
     return [
15 15
         'criteria_type_id' => CriteriaType::inRandomOrder()->first()->id,
16
-        'job_poster_id' => function () {
16
+        'job_poster_id' => function() {
17 17
             return factory(JobPoster::class)->create()->id;
18 18
         },
19 19
         'skill_id' => Skill::inRandomOrder()->first()->id,
Please login to merge, or discard this patch.
database/factories/WorkEnvironmentFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 $faker_fr = Factory::create('fr');
10 10
 
11
-$factory->define(WorkEnvironment::class, function (Generator $faker) use ($faker_fr) {
11
+$factory->define(WorkEnvironment::class, function(Generator $faker) use ($faker_fr) {
12 12
     return [
13 13
         'telework_allowed_frequency_id' => Frequency::inRandomOrder()->first()->id,
14 14
         'flexible_hours_frequency_id' => Frequency::inRandomOrder()->first()->id,
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
             'en' => $faker->paragraph(),
17 17
             'fr' => $faker_fr->paragraph()
18 18
         ],
19
-        'manager_id' => function () {
19
+        'manager_id' => function() {
20 20
             return factory(Manager::class)->create()->id;
21 21
         }
22 22
     ];
Please login to merge, or discard this patch.
database/factories/TeamCultureFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 $faker_fr = Factory::create('fr');
9 9
 
10
-$factory->define(TeamCulture::class, function (Generator $faker) use ($faker_fr) {
10
+$factory->define(TeamCulture::class, function(Generator $faker) use ($faker_fr) {
11 11
     return [
12 12
         'team_size' => $faker->numberBetween(5, 15),
13 13
         'gc_directory_url' => $faker->url(),
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             'en' => $faker->paragraph(),
28 28
             'fr' => $faker_fr->paragraph()
29 29
         ],
30
-        'manager_id' => function () {
30
+        'manager_id' => function() {
31 31
             return factory(Manager::class)->create()->id;
32 32
         }
33 33
     ];
Please login to merge, or discard this patch.
database/factories/JobPosterKeyTaskFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,9 +7,9 @@
 block discarded – undo
7 7
 
8 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
-        'job_poster_id' => function () {
12
+        'job_poster_id' => function() {
13 13
             return factory(JobPoster::class)->create()->id;
14 14
         },
15 15
         'description' => [
Please login to merge, or discard this patch.