Passed
Push — task/common-translation-packag... ( 2abece...256e02 )
by Chris
07:03
created
database/factories/ApplicationFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
 use App\Models\JobApplicationAnswer;
11 11
 use App\Models\SkillDeclaration;
12 12
 
13
-$factory->define(JobApplication::class, function (Faker\Generator $faker) {
13
+$factory->define(JobApplication::class, function(Faker\Generator $faker){
14 14
     return [
15
-        'job_poster_id' => function () {
15
+        'job_poster_id' => function(){
16 16
             return factory(JobPoster::class)->states('published')->create()->id;
17 17
         },
18 18
         'application_status_id' => ApplicationStatus::where('name', 'submitted')->firstOrFail()->id,
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         'preferred_language_id' => PreferredLanguage::inRandomOrder()->first()->id,
22 22
         'submission_signature' => $faker->name(),
23 23
         'submission_date' => $faker->dateTimeBetween('yesterday', 'tomorrow')->format('Y-m-d H:i:s'),
24
-        'applicant_id' => function () {
24
+        'applicant_id' => function(){
25 25
             return factory(Applicant::class)->create()->id;
26 26
         }
27 27
     ];
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     'submission_date' => null
34 34
 ]);
35 35
 
36
-$factory->afterCreating(JobApplication::class, function ($application) : void {
36
+$factory->afterCreating(JobApplication::class, function($application) : void {
37 37
     foreach ($application->job_poster->job_poster_questions as $question) {
38 38
         $answer = factory(JobApplicationAnswer::class)->create([
39 39
             'job_poster_question_id' => $question->id,
Please login to merge, or discard this patch.
database/factories/AssessmentFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,16 +6,16 @@
 block discarded – undo
6 6
 use App\Models\RatingGuideQuestion;
7 7
 use App\Models\RatingGuideAnswer;
8 8
 
9
-$factory->define(Assessment::class, function (Faker\Generator $faker) {
9
+$factory->define(Assessment::class, function(Faker\Generator $faker){
10 10
     return [
11
-        'criterion_id' => function () {
11
+        'criterion_id' => function(){
12 12
             return factory(Criteria::class)->create()->id;
13 13
         },
14 14
         'assessment_type_id' => AssessmentType::inRandomOrder()->first()->id,
15 15
     ];
16 16
 });
17 17
 
18
-$factory->afterMakingState(Assessment::class, 'withRatingGuide', function ($assessment, $faker): void {
18
+$factory->afterMakingState(Assessment::class, 'withRatingGuide', function($assessment, $faker): void {
19 19
     // Create a RatingGuideQuestion, and an accompanying RatingGuideAnswer
20 20
     $question = factory(RatingGuideQuestion::class)->create([
21 21
         'job_poster_id' => $assessment->criterion->job_poster_id,
Please login to merge, or discard this patch.
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/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.
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/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/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/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/seeds/DevSeeder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
         factory(JobPoster::class, 3)->state('published')->create([
62 62
             'manager_id' => $managerUser->manager->id
63
-        ])->each(function ($job) : void {
63
+        ])->each(function($job) : void {
64 64
             $job->job_applications()->saveMany(factory(JobApplication::class, 5))->create([
65 65
                 'job_poster_id' => $job->id
66 66
             ]);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         });
75 75
         factory(JobPoster::class, 3)->state('closed')->create([
76 76
             'manager_id' => $managerUser->manager->id
77
-        ])->each(function ($job) : void {
77
+        ])->each(function($job) : void {
78 78
             $job->job_applications()->saveMany(factory(JobApplication::class, 5))->create([
79 79
                 'job_poster_id' => $job->id
80 80
             ]);
Please login to merge, or discard this patch.