Passed
Push — task/common-translation-packag... ( 519c3a...19e78f )
by Chris
21:06 queued 13:03
created
app/Models/Lookup/ApplicantProfileQuestion.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
  * @property string $question
25 25
  * @property string $description
26 26
  */
27
-class ApplicantProfileQuestion extends BaseModel {
27
+class ApplicantProfileQuestion extends BaseModel{
28 28
 
29 29
     protected $fillable = [];
30 30
 
Please login to merge, or discard this patch.
app/Models/Lookup/ReviewStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  * Acessors:
17 17
  * @property string $translation
18 18
  */
19
-class ReviewStatus extends BaseModel {
19
+class ReviewStatus extends BaseModel{
20 20
 
21 21
     protected $fillable = [];
22 22
 
Please login to merge, or discard this patch.
app/Models/Lookup/SkillType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
  *
15 15
  * @property \Illuminate\Database\Eloquent\Collection $skills
16 16
  */
17
-class SkillType extends BaseModel {
17
+class SkillType extends BaseModel{
18 18
 
19 19
     protected $fillable = [
20 20
         'name'
Please login to merge, or discard this patch.
app/Models/Lookup/PreferredLanguage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  * @property \Illuminate\Database\Eloquent\Collection $job_applications
16 16
  *
17 17
  */
18
-class PreferredLanguage extends BaseModel {
18
+class PreferredLanguage extends BaseModel{
19 19
 
20 20
     protected $fillable = [];
21 21
 
Please login to merge, or discard this patch.
database/factories/JobPosterFactory.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 $faker_fr = Faker\Factory::create('fr');
19 19
 
20
-$factory->define(JobPoster::class, function (Faker\Generator $faker) use ($faker_fr) {
20
+$factory->define(JobPoster::class, function(Faker\Generator $faker) use ($faker_fr) {
21 21
     $closeDate = $faker->dateTimeBetween('now', '1 months')->format('Y-m-d');
22 22
     $openDate = $faker->dateTimeBetween('-1 months', 'now')->format('Y-m-d');
23 23
     $startDate = $faker->dateTimeBetween('1 months', '2 months')->format('Y-m-d');
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         'security_clearance_id' => SecurityClearance::inRandomOrder()->first()->id,
61 61
         'language_requirement_id' => LanguageRequirement::inRandomOrder()->first()->id,
62 62
         'remote_work_allowed' => $faker->boolean(50),
63
-        'manager_id' => function () {
63
+        'manager_id' => function() {
64 64
             return factory(Manager::class)->create()->id;
65 65
         },
66 66
         'team_size' => $faker->numberBetween(5, 30),
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     ];
99 99
 });
100 100
 
101
-$factory->afterCreating(JobPoster::class, function ($jp) : void {
101
+$factory->afterCreating(JobPoster::class, function($jp) : void {
102 102
     $jp->criteria()->saveMany(factory(Criteria::class, 5)->make([
103 103
         'job_poster_id' => $jp->id
104 104
     ]));
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 $factory->state(
114 114
     JobPoster::class,
115 115
     'byUpgradedManager',
116
-    ['manager_id' => function () {
116
+    ['manager_id' => function() {
117 117
             return factory(Manager::class)->state('upgraded')->create()->id;
118 118
     }]
119 119
 );
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 $factory->state(
122 122
     JobPoster::class,
123 123
     'published',
124
-    function (Faker\Generator $faker) {
124
+    function(Faker\Generator $faker) {
125 125
         return [
126 126
             'published' => true,
127 127
             'published_at' => $faker->dateTimeBetween('-1 months', '-3 weeks')
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 $factory->state(
133 133
     JobPoster::class,
134 134
     'closed',
135
-    function (Faker\Generator $faker) {
135
+    function(Faker\Generator $faker) {
136 136
         return [
137 137
             'published' => true,
138 138
             'published_at' => $faker->dateTimeBetween('-1 months', '-3 weeks'),
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 $factory->state(
145 145
     JobPoster::class,
146 146
     'draft',
147
-    function (Faker\Generator $faker) {
147
+    function(Faker\Generator $faker) {
148 148
         return [
149 149
             'published' => false,
150 150
             'open_date_time' => ptDayStartToUtcTime($faker->dateTimeBetween('5 days', '10 days')->format('Y-m-d')),
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 $factory->state(
159 159
     JobPoster::class,
160 160
     'review_requested',
161
-    function (Faker\Generator $faker) {
161
+    function(Faker\Generator $faker) {
162 162
         return [
163 163
             'published' => false,
164 164
             'open_date_time' => ptDayStartToUtcTime($faker->dateTimeBetween('5 days', '10 days')->format('Y-m-d')),
Please login to merge, or discard this patch.
database/factories/RatingGuideQuestionFactory.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\RatingGuideQuestion;
6 6
 use App\Models\JobPoster;
7 7
 
8
-$factory->define(RatingGuideQuestion::class, function (Faker\Generator $faker) {
8
+$factory->define(RatingGuideQuestion::class, function(Faker\Generator $faker) {
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
         'assessment_type_id' => AssessmentType::inRandomOrder()->first()->id,
Please login to merge, or discard this patch.
database/factories/SkillDeclarationFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,12 +6,12 @@
 block discarded – undo
6 6
 use App\Models\Lookup\SkillLevel;
7 7
 use App\Models\Applicant;
8 8
 
9
-$factory->define(SkillDeclaration::class, function (Faker\Generator $faker) {
9
+$factory->define(SkillDeclaration::class, function(Faker\Generator $faker) {
10 10
     return [
11 11
         'skill_id' => Skill::inRandomOrder()->first()->id,
12 12
         'skill_status_id' => SkillStatus::inRandomOrder()->first()->id,
13 13
         'skill_level_id' => SkillLevel::inRandomOrder()->first()->id,
14
-        'applicant_id' => function () {
14
+        'applicant_id' => function() {
15 15
             return factory(Applicant::class)->create()->id;
16 16
         },
17 17
         'description' => $faker->paragraphs(3, true),
Please login to merge, or discard this patch.
database/factories/UserFactory.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
 
24 24
 $faker_fr = Faker\Factory::create('fr');
25 25
 
26
-$factory->define(User::class, function (Faker\Generator $faker) {
26
+$factory->define(User::class, function(Faker\Generator $faker) {
27 27
     static $password;
28 28
 
29 29
     return [
30 30
         'first_name' => $faker->firstName(),
31 31
         'last_name' => $faker->lastName(),
32 32
         'email' => $faker->unique()->safeEmail(),
33
-        'password' => $password ? : $password = Hash::make('password'),
33
+        'password' => $password ?: $password = Hash::make('password'),
34 34
         'is_confirmed' => 1,
35 35
         'user_role_id' => UserRole::where('name', 'basic')->first()->id, // Users should default to basic user role.
36 36
         'remember_token' => str_random(10),
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     ];
39 39
 });
40 40
 
41
-$factory->state(User::class, 'upgradedManager', function (Faker\Generator $faker) {
41
+$factory->state(User::class, 'upgradedManager', function(Faker\Generator $faker) {
42 42
     return [
43 43
         'user_role_id' => UserRole::where('name', 'upgradedManager')->first()->id,
44 44
         'gov_email' => $faker->unique()->safeEmail(),
@@ -57,20 +57,20 @@  discard block
 block discarded – undo
57 57
     'is_priority' => true
58 58
 ]);
59 59
 
60
-$factory->define(Applicant::class, function (Faker\Generator $faker) {
60
+$factory->define(Applicant::class, function(Faker\Generator $faker) {
61 61
     return [
62 62
         'twitter_username' => $faker->firstName(),
63 63
         'linkedin_url' => null,
64 64
         'tagline' => $faker->paragraph(),
65 65
         'personal_website' => $faker->url(),
66 66
         'is_snapshot' => false,
67
-        'user_id' => function () {
67
+        'user_id' => function() {
68 68
             return factory(User::class)->states('applicant')->create()->id;
69 69
         },
70 70
     ];
71 71
 });
72 72
 
73
-$factory->define(Manager::class, function (Faker\Generator $faker) use ($faker_fr) {
73
+$factory->define(Manager::class, function(Faker\Generator $faker) use ($faker_fr) {
74 74
     return [
75 75
         'twitter_username' => $faker->firstName(),
76 76
         'linkedin_url' => null,
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         'development_opportunity_frequency_id' => Frequency::inRandomOrder()->first()->id,
82 82
         'refuse_low_value_work_frequency_id' => Frequency::inRandomOrder()->first()->id,
83 83
         'years_experience' => $faker->numberBetween(2, 25),
84
-        'user_id' => function () use ($faker) {
84
+        'user_id' => function() use ($faker) {
85 85
             return factory(User::class)->create([
86 86
                 'gov_email' => $faker->unique()->safeEmail(),
87 87
             ])->id;
@@ -110,12 +110,12 @@  discard block
 block discarded – undo
110 110
 });
111 111
 
112 112
 $factory->state(Manager::class, 'upgraded', [
113
-    'user_id' => function () {
113
+    'user_id' => function() {
114 114
         return factory(User::class)->state('upgradedManager')->create()->id;
115 115
     },
116 116
 ]);
117 117
 
118
-$factory->afterCreating(Manager::class, function ($manager) : void {
118
+$factory->afterCreating(Manager::class, function($manager) : void {
119 119
     $manager->team_culture()->save(factory(TeamCulture::class)->create([
120 120
         'manager_id' => $manager->id,
121 121
     ]));
Please login to merge, or discard this patch.
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.