Passed
Push — dependabot/npm_and_yarn/dev/co... ( c231c8 )
by
unknown
11:30
created
database/factories/AssessmentFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,22 +6,22 @@
 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 () {
12
-            return factory(Criteria::class)->create()->id;
11
+        'criterion_id' => function (){
12
+            return factory (Criteria::class)->create ()->id;
13 13
         },
14
-        'assessment_type_id' => AssessmentType::inRandomOrder()->first()->id,
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
-    $question = factory(RatingGuideQuestion::class)->create([
20
+    $question = factory (RatingGuideQuestion::class)->create ([
21 21
         'job_poster_id' => $assessment->criterion->job_poster_id,
22 22
         'assessment_type_id' => $assessment->assessment_type_id,
23 23
     ]);
24
-    factory(RatingGuideAnswer::class)->create([
24
+    factory (RatingGuideAnswer::class)->create ([
25 25
         'rating_guide_question_id' => $question->id,
26 26
         'criterion_id' => $assessment->criterion_id,
27 27
     ]);
Please login to merge, or discard this patch.
app/Models/JobPosterQuestionTranslation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
  * 
21 21
  * @property \App\Models\JobPosterQuestion $job_poster_question
22 22
  */
23
-class JobPosterQuestionTranslation extends BaseModel {
23
+class JobPosterQuestionTranslation extends BaseModel{
24 24
 
25 25
     protected $casts = [
26 26
         'job_poster_question_id' => 'int'
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
         'description'
31 31
     ];
32 32
 
33
-    public function job_poster_question() {
34
-        return $this->belongsTo(\App\Models\JobPosterQuestion::class);
33
+    public function job_poster_question(){
34
+        return $this->belongsTo (\App\Models\JobPosterQuestion::class);
35 35
     }
36 36
 
37 37
 }
Please login to merge, or discard this patch.
app/Models/TeamCulture.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@
 block discarded – undo
47 47
 
48 48
     public function manager()
49 49
     {
50
-        return $this->belongsTo(\App\Models\Manager::class);
50
+        return $this->belongsTo (\App\Models\Manager::class);
51 51
     }
52 52
 
53 53
     public function team_culture_translations() //phpcs:ignore
54 54
     {
55
-        return $this->hasMany(\App\Models\TeamCultureTranslation::class);
55
+        return $this->hasMany (\App\Models\TeamCultureTranslation::class);
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
app/Models/WorkEnvironmentTranslation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
  *
21 21
  * @property \App\Models\WorkEnvironment $work_environment
22 22
  */
23
-class WorkEnvironmentTranslation extends BaseModel {
23
+class WorkEnvironmentTranslation extends BaseModel{
24 24
 
25 25
     protected $fillable = [
26 26
         'things_to_know'
27 27
     ];
28 28
 
29
-    public function work_environment() {
30
-        return $this->belongsTo(\App\Models\WorkEnvironment::class);
29
+    public function work_environment(){
30
+        return $this->belongsTo (\App\Models\WorkEnvironment::class);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
app/Models/TeamCultureTranslation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
 
38 38
     public function team_culture() //phpcs:ignore
39 39
     {
40
-        return $this->belongsTo(\App\Models\TeamCulture::class);
40
+        return $this->belongsTo (\App\Models\TeamCulture::class);
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
app/Models/CriteriaTranslation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
36 36
 
37 37
     public function criteria()
38 38
     {
39
-        return $this->belongsTo(\App\Models\Lookup\Criteria::class);
39
+        return $this->belongsTo (\App\Models\Lookup\Criteria::class);
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
app/Models/Manager.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -119,27 +119,27 @@  discard block
 block discarded – undo
119 119
 
120 120
     public function user()
121 121
     {
122
-        return $this->belongsTo(\App\Models\User::class);
122
+        return $this->belongsTo (\App\Models\User::class);
123 123
     }
124 124
 
125 125
     public function department()
126 126
     {
127
-        return $this->belongsTo(\App\Models\Lookup\Department::class);
127
+        return $this->belongsTo (\App\Models\Lookup\Department::class);
128 128
     }
129 129
 
130 130
     public function job_posters() //phpcs:ignore
131 131
     {
132
-        return $this->hasMany(\App\Models\JobPoster::class);
132
+        return $this->hasMany (\App\Models\JobPoster::class);
133 133
     }
134 134
 
135 135
     public function work_environment() //phpcs:ignore
136 136
     {
137
-        return $this->hasOne(\App\Models\WorkEnvironment::class)->withDefault();
137
+        return $this->hasOne (\App\Models\WorkEnvironment::class)->withDefault ();
138 138
     }
139 139
 
140 140
     public function team_culture() //phpcs:ignore
141 141
     {
142
-        return $this->hasOne(\App\Models\TeamCulture::class)->withDefault();
142
+        return $this->hasOne (\App\Models\TeamCulture::class)->withDefault ();
143 143
     }
144 144
     /*
145 145
     * @property \App\Models\Lookup\Frequency $review_options
@@ -156,27 +156,27 @@  discard block
 block discarded – undo
156 156
     */
157 157
     public function work_review_frequency() //phpcs:ignore
158 158
     {
159
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
159
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
160 160
     }
161 161
 
162 162
     public function stay_late_frequency() //phpcs:ignore
163 163
     {
164
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
164
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
165 165
     }
166 166
 
167 167
     public function engage_team_frequency() //phpcs:ignore
168 168
     {
169
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
169
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
170 170
     }
171 171
 
172 172
     public function development_opportunity_frequency() //phpcs:ignore
173 173
     {
174
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
174
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
175 175
     }
176 176
 
177 177
     public function refuse_low_value_work_frequency() //phpcs:ignore
178 178
     {
179
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
179
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
180 180
     }
181 181
 
182 182
     /**
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     public function getFullNameAttribute(): string
188 188
     {
189 189
         if ($this->user !== null) {
190
-            return $this->user->first_name . ' ' . $this->user->last_name;
190
+            return $this->user->first_name.' '.$this->user->last_name;
191 191
         }
192 192
         return '';
193 193
     }
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     public function getIsDemoManagerAttribute(): bool
227 227
     {
228 228
         if ($this->user !== null) {
229
-            return $this->user->isDemoManager();
229
+            return $this->user->isDemoManager ();
230 230
         }
231 231
         return true;
232 232
     }
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
      */
240 240
     public function toApiArray()
241 241
     {
242
-        $withTranslations = array_merge($this->toArray(), $this->getTranslationsArray());
242
+        $withTranslations = array_merge ($this->toArray (), $this->getTranslationsArray ());
243 243
         return $withTranslations;
244 244
     }
245 245
 }
Please login to merge, or discard this patch.
app/Models/JobPosterKeyTaskTranslation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  * 
20 20
  * @property \App\Models\JobPosterKeyTask $job_poster_key_task
21 21
  */
22
-class JobPosterKeyTaskTranslation extends BaseModel {
22
+class JobPosterKeyTaskTranslation extends BaseModel{
23 23
 
24 24
     protected $casts = [
25 25
         'job_poster_key_task_id' => 'int'
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
         'description'
30 30
     ];
31 31
 
32
-    public function job_poster_key_task() {
33
-        return $this->belongsTo(\App\Models\JobPosterKeyTask::class);
32
+    public function job_poster_key_task(){
33
+        return $this->belongsTo (\App\Models\JobPosterKeyTask::class);
34 34
     }
35 35
 
36 36
 }
Please login to merge, or discard this patch.
app/Models/Lookup/Department.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
 
59 59
     public function managers() // phpcs:ignore
60 60
     {
61
-        return $this->hasMany(\App\Models\Manager::class);
61
+        return $this->hasMany (\App\Models\Manager::class);
62 62
     }
63 63
 
64 64
     public function department_translations() // phpcs:ignore
65 65
     {
66
-        return $this->hasMany(\App\Models\Lookup\DepartmentTranslation::class);
66
+        return $this->hasMany (\App\Models\Lookup\DepartmentTranslation::class);
67 67
     }
68 68
 
69 69
     public function job_posters() // phpcs:ignore
70 70
     {
71
-        return $this->hasMany(\App\Models\JobPoster::class);
71
+        return $this->hasMany (\App\Models\JobPoster::class);
72 72
     }
73 73
 
74 74
     /**
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
         $deptArray = ['id' => $this->id];
82 82
         foreach (['en', 'fr'] as $locale) {
83 83
             $deptArray[$locale] = [
84
-                'name' => $this->getTranslation('name', $locale),
85
-                'impact' => $this->getTranslation('impact', $locale),
84
+                'name' => $this->getTranslation ('name', $locale),
85
+                'impact' => $this->getTranslation ('impact', $locale),
86 86
             ];
87 87
         }
88 88
         return $deptArray;
Please login to merge, or discard this patch.