Passed
Push — feature/immutable-application-... ( d4dc87...b29460 )
by Grant
08:27
created
database/factories/WorkEnvironmentFactory.php 1 patch
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.
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
@@ -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.
database/factories/JobPosterQuestionFactory.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
 
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/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
@@ -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.
app/Models/Course.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
  * @property \App\Models\Lookup\CourseStatus $course_status
26 26
  * @property \App\Models\Applicant|\App\Models\JobApplication $courseable
27 27
  */
28
-class Course extends BaseModel {
28
+class Course extends BaseModel{
29 29
 
30 30
     protected $casts = [
31 31
         'name' => 'string',
Please login to merge, or discard this patch.
app/Models/Project.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  *
22 22
  * @property \App\Models\Applicant|\App\Models\JobApplication $projectable
23 23
  */
24
-class Project extends BaseModel {
24
+class Project extends BaseModel{
25 25
 
26 26
     protected $casts = [
27 27
         'name' => 'string',
Please login to merge, or discard this patch.