Passed
Push — feature/hr-portal ( ae4ab3...ab04c7 )
by Chris
12:13 queued 11s
created
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/JobPoster.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -273,42 +273,42 @@  discard block
 block discarded – undo
273 273
     // @codeCoverageIgnoreStart
274 274
     public function department() // phpcs:ignore
275 275
     {
276
-        return $this->belongsTo(\App\Models\Lookup\Department::class);
276
+        return $this->belongsTo (\App\Models\Lookup\Department::class);
277 277
     }
278 278
 
279 279
     public function job_term() // phpcs:ignore
280 280
     {
281
-        return $this->belongsTo(\App\Models\Lookup\JobTerm::class);
281
+        return $this->belongsTo (\App\Models\Lookup\JobTerm::class);
282 282
     }
283 283
 
284 284
     public function language_requirement() // phpcs:ignore
285 285
     {
286
-        return $this->belongsTo(\App\Models\Lookup\LanguageRequirement::class);
286
+        return $this->belongsTo (\App\Models\Lookup\LanguageRequirement::class);
287 287
     }
288 288
 
289 289
     public function manager() // phpcs:ignore
290 290
     {
291
-        return $this->belongsTo(\App\Models\Manager::class);
291
+        return $this->belongsTo (\App\Models\Manager::class);
292 292
     }
293 293
 
294 294
     public function province() // phpcs:ignore
295 295
     {
296
-        return $this->belongsTo(\App\Models\Lookup\Province::class);
296
+        return $this->belongsTo (\App\Models\Lookup\Province::class);
297 297
     }
298 298
 
299 299
     public function security_clearance() // phpcs:ignore
300 300
     {
301
-        return $this->belongsTo(\App\Models\Lookup\SecurityClearance::class);
301
+        return $this->belongsTo (\App\Models\Lookup\SecurityClearance::class);
302 302
     }
303 303
 
304 304
     public function criteria() // phpcs:ignore
305 305
     {
306
-        return $this->hasMany(\App\Models\Criteria::class);
306
+        return $this->hasMany (\App\Models\Criteria::class);
307 307
     }
308 308
 
309 309
     public function hr_advisors() // phpcs:ignore
310 310
     {
311
-        return $this->belongsToMany(
311
+        return $this->belongsToMany (
312 312
             \App\Models\HrAdvisor::class,
313 313
             'claimed_jobs'
314 314
         );
@@ -316,47 +316,47 @@  discard block
 block discarded – undo
316 316
 
317 317
     public function job_applications() // phpcs:ignore
318 318
     {
319
-        return $this->hasMany(\App\Models\JobApplication::class);
319
+        return $this->hasMany (\App\Models\JobApplication::class);
320 320
     }
321 321
 
322 322
     public function job_poster_key_tasks() // phpcs:ignore
323 323
     {
324
-        return $this->hasMany(\App\Models\JobPosterKeyTask::class);
324
+        return $this->hasMany (\App\Models\JobPosterKeyTask::class);
325 325
     }
326 326
 
327 327
     public function job_poster_questions() // phpcs:ignore
328 328
     {
329
-        return $this->hasMany(\App\Models\JobPosterQuestion::class);
329
+        return $this->hasMany (\App\Models\JobPosterQuestion::class);
330 330
     }
331 331
 
332 332
     public function job_poster_translations() // phpcs:ignore
333 333
     {
334
-        return $this->hasMany(\App\Models\JobPosterTranslation::class);
334
+        return $this->hasMany (\App\Models\JobPosterTranslation::class);
335 335
     }
336 336
 
337 337
     public function telework_allowed_frequency() // phpcs:ignore
338 338
     {
339
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
339
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
340 340
     }
341 341
 
342 342
     public function flexible_hours_frequency() // phpcs:ignore
343 343
     {
344
-        return $this->belongsTo(\App\Models\Lookup\Frequency::class);
344
+        return $this->belongsTo (\App\Models\Lookup\Frequency::class);
345 345
     }
346 346
 
347 347
     public function travel_requirement() // phpcs:ignore
348 348
     {
349
-        return $this->belongsTo(\App\Models\Lookup\TravelRequirement::class);
349
+        return $this->belongsTo (\App\Models\Lookup\TravelRequirement::class);
350 350
     }
351 351
 
352 352
     public function overtime_requirement() // phpcs:ignore
353 353
     {
354
-        return $this->belongsTo(\App\Models\Lookup\OvertimeRequirement::class);
354
+        return $this->belongsTo (\App\Models\Lookup\OvertimeRequirement::class);
355 355
     }
356 356
 
357 357
     public function classification() // phpcs:ignore
358 358
     {
359
-        return $this->belongsTo(\App\Models\Classification::class);
359
+        return $this->belongsTo (\App\Models\Classification::class);
360 360
     }
361 361
     // @codeCoverageIgnoreEnd
362 362
     /* Artificial Relations */
@@ -369,8 +369,8 @@  discard block
 block discarded – undo
369 369
      */
370 370
     public function submitted_applications() // phpcs:ignore
371 371
     {
372
-        return $this->hasMany(\App\Models\JobApplication::class)->whereDoesntHave('application_status', function ($query): void {
373
-            $query->where('name', 'draft');
372
+        return $this->hasMany (\App\Models\JobApplication::class)->whereDoesntHave ('application_status', function ($query): void {
373
+            $query->where ('name', 'draft');
374 374
         });
375 375
     }
376 376
 
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
      */
390 390
     public function resolveRouteBinding($value) // phpcs:ignore
391 391
     {
392
-        return $this->withCount('submitted_applications')->where('id', $value)->first() ?? abort(404);
392
+        return $this->withCount ('submitted_applications')->where ('id', $value)->first () ?? abort (404);
393 393
     }
394 394
 
395 395
     /**
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
     public function setPublishedAttribute($value): void
404 404
     {
405 405
         if ($value) {
406
-            $this->attributes['published_at'] = new Date();
406
+            $this->attributes['published_at'] = new Date ();
407 407
         } else {
408 408
             $this->attributes['published_at'] = null;
409 409
         }
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
 
418 418
     public function submitted_applications_count() //phpcs:ignore
419 419
     {
420
-        return $this->submitted_applications()->count();
420
+        return $this->submitted_applications ()->count ();
421 421
     }
422 422
 
423 423
     /**
@@ -427,15 +427,15 @@  discard block
 block discarded – undo
427 427
      */
428 428
     public function applyBy(): array
429 429
     {
430
-        $localCloseDate = new Date($this->close_date_time); // This initializes the date object in UTC time.
431
-        $localCloseDate->setTimezone(new \DateTimeZone(self::TIMEZONE)); // Then set the time zone for display.
430
+        $localCloseDate = new Date ($this->close_date_time); // This initializes the date object in UTC time.
431
+        $localCloseDate->setTimezone (new \DateTimeZone (self::TIMEZONE)); // Then set the time zone for display.
432 432
         $displayDate = [
433
-            'date' => $localCloseDate->format(self::DATE_FORMAT[App::getLocale()]),
434
-            'time' => $localCloseDate->format(self::TIME_FORMAT[App::getLocale()])
433
+            'date' => $localCloseDate->format (self::DATE_FORMAT[App::getLocale ()]),
434
+            'time' => $localCloseDate->format (self::TIME_FORMAT[App::getLocale ()])
435 435
         ];
436 436
 
437
-        if (App::isLocale('fr')) {
438
-            $displayDate['time'] = str_replace(['EST', 'EDT'], ['HNE', 'HAE'], $displayDate['time']);
437
+        if (App::isLocale ('fr')) {
438
+            $displayDate['time'] = str_replace (['EST', 'EDT'], ['HNE', 'HAE'], $displayDate['time']);
439 439
         }
440 440
 
441 441
         return $displayDate;
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
      */
450 450
     public function displayStatus(): string
451 451
     {
452
-        return $this->isOpen() ? 'Open' : 'Closed';
452
+        return $this->isOpen () ? 'Open' : 'Closed';
453 453
     }
454 454
 
455 455
     /**
@@ -462,8 +462,8 @@  discard block
 block discarded – undo
462 462
         return $this->published
463 463
             && $this->open_date_time !== null
464 464
             && $this->close_date_time !== null
465
-            && $this->open_date_time->isPast()
466
-            && $this->close_date_time->isFuture();
465
+            && $this->open_date_time->isPast ()
466
+            && $this->close_date_time->isFuture ();
467 467
     }
468 468
 
469 469
     /**
@@ -476,8 +476,8 @@  discard block
 block discarded – undo
476 476
         return $this->published
477 477
             && $this->open_date_time !== null
478 478
             && $this->close_date_time !== null
479
-            && $this->open_date_time->isPast()
480
-            && $this->close_date_time->isPast();
479
+            && $this->open_date_time->isPast ()
480
+            && $this->close_date_time->isPast ();
481 481
     }
482 482
 
483 483
     /**
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      */
488 488
     public function timeRemaining(): string
489 489
     {
490
-        $interval = $this->close_date_time->diff(Date::now());
490
+        $interval = $this->close_date_time->diff (Date::now ());
491 491
 
492 492
         $d = $interval->d;
493 493
         $h = $interval->h;
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
 
511 511
         $key = "common/time.$unit";
512 512
 
513
-        return Lang::choice($key, $count);
513
+        return Lang::choice ($key, $count);
514 514
     }
515 515
 
516 516
     /**
@@ -522,9 +522,9 @@  discard block
 block discarded – undo
522 522
     public function status(): string
523 523
     {
524 524
         $status = 'draft';
525
-        if ($this->isOpen()) {
525
+        if ($this->isOpen ()) {
526 526
             $status = 'published';
527
-        } elseif ($this->isClosed()) {
527
+        } elseif ($this->isClosed ()) {
528 528
             $status = 'closed';
529 529
         } elseif ($this->review_requested_at !== null) {
530 530
             $status = 'submitted';
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
     public function getClassificationMessageAttribute()
559 559
     {
560 560
         if ($this->classification_id !== null && $this->classification_level !== null) {
561
-            return $this->classification->key . '-0' . $this->classification_level;
561
+            return $this->classification->key.'-0'.$this->classification_level;
562 562
         }
563 563
         return null;
564 564
     }
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
      */
572 572
     public function toApiArray(): array
573 573
     {
574
-        $jobWithTranslations = array_merge($this->toArray(), $this->getTranslationsArray());
574
+        $jobWithTranslations = array_merge ($this->toArray (), $this->getTranslationsArray ());
575 575
         return $jobWithTranslations;
576 576
     }
577 577
 }
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/User.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -190,10 +190,10 @@  discard block
 block discarded – undo
190 190
     }
191 191
 
192 192
     /**
193
-    * Check if the user has the specified role.
194
-    * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
195
-    * @return boolean
196
-    */
193
+     * Check if the user has the specified role.
194
+     * @param string $role This may be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
195
+     * @return boolean
196
+     */
197 197
     public function hasRole($role)
198 198
     {
199 199
         switch ($role) {
@@ -214,8 +214,8 @@  discard block
 block discarded – undo
214 214
      * Set this user to the specified role.
215 215
      *
216 216
      * @param string $role Must be either 'applicant', 'manager', 'hr_advisor' or 'admin'.
217
-    * @return void
218
-    */
217
+     * @return void
218
+     */
219 219
     public function setRole(string $role): void
220 220
     {
221 221
         $this->user_role()->associate(UserRole::where('name', $role)->firstOrFail());
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      * Returns a user's full name.
251 251
      *
252 252
      * @return string
253
-    */
253
+     */
254 254
     public function getFullNameAttribute(): string
255 255
     {
256 256
         return $this->first_name . ' ' . $this->last_name;
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -92,27 +92,27 @@  discard block
 block discarded – undo
92 92
 
93 93
     public function applicant() //phpcs:ignore
94 94
     {
95
-        return $this->hasOne(\App\Models\Applicant::class);
95
+        return $this->hasOne (\App\Models\Applicant::class);
96 96
     }
97 97
 
98 98
     public function manager() //phpcs:ignore
99 99
     {
100
-        return $this->hasOne(\App\Models\Manager::class);
100
+        return $this->hasOne (\App\Models\Manager::class);
101 101
     }
102 102
 
103 103
     public function hr_advisor() //phpcs:ignore
104 104
     {
105
-        return $this->hasOne(\App\Models\HrAdvisor::class);
105
+        return $this->hasOne (\App\Models\HrAdvisor::class);
106 106
     }
107 107
 
108 108
     public function profile_pic() //phpcs:ignore
109 109
     {
110
-        return $this->hasOne(\App\Models\ProfilePic::class);
110
+        return $this->hasOne (\App\Models\ProfilePic::class);
111 111
     }
112 112
 
113 113
     public function user_role() //phpcs:ignore
114 114
     {
115
-        return $this->belongsTo(\App\Models\UserRole::class);
115
+        return $this->belongsTo (\App\Models\UserRole::class);
116 116
     }
117 117
 
118 118
     public function setIsPriorityAttribute($value)
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function isUpgradedManager(): bool
145 145
     {
146
-        return $this->isAdmin() || $this->user_role->name === 'upgradedManager';
146
+        return $this->isAdmin () || $this->user_role->name === 'upgradedManager';
147 147
     }
148 148
 
149 149
     /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     public function isDemoManager(): bool
155 155
     {
156 156
         // Currently, every non-upgradedManager user can be considered a demoManager.
157
-        return !$this->isUpgradedManager();
157
+        return !$this->isUpgradedManager ();
158 158
     }
159 159
 
160 160
     /**
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     public function isManager(): bool
166 166
     {
167 167
         // Currently, every user can use the Manager portal as a demoManager.
168
-        return $this->isDemoManager() || $this->isUpgradedManager();
168
+        return $this->isDemoManager () || $this->isUpgradedManager ();
169 169
     }
170 170
 
171 171
     /**
@@ -198,13 +198,13 @@  discard block
 block discarded – undo
198 198
     {
199 199
         switch ($role) {
200 200
             case 'applicant':
201
-                return $this->isApplicant();
201
+                return $this->isApplicant ();
202 202
             case 'manager':
203
-                return $this->isManager();
203
+                return $this->isManager ();
204 204
             case 'hr_advisor':
205
-                return $this->isHrAdvisor();
205
+                return $this->isHrAdvisor ();
206 206
             case 'admin':
207
-                return $this->isAdmin();
207
+                return $this->isAdmin ();
208 208
             default:
209 209
                 return false;
210 210
         }
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     */
219 219
     public function setRole(string $role): void
220 220
     {
221
-        $this->user_role()->associate(UserRole::where('name', $role)->firstOrFail());
221
+        $this->user_role ()->associate (UserRole::where ('name', $role)->firstOrFail ());
222 222
     }
223 223
 
224 224
     /**
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function sendPasswordResetNotification($token): void
233 233
     {
234
-        $this->notify(new ResetPasswordNotification($token));
234
+        $this->notify (new ResetPasswordNotification ($token));
235 235
     }
236 236
 
237 237
     /**
@@ -253,6 +253,6 @@  discard block
 block discarded – undo
253 253
     */
254 254
     public function getFullNameAttribute(): string
255 255
     {
256
-        return $this->first_name . ' ' . $this->last_name;
256
+        return $this->first_name.' '.$this->last_name;
257 257
     }
258 258
 }
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.
app/Models/Lookup/SecurityClearanceTranslation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,15 +21,15 @@
 block discarded – undo
21 21
  * 
22 22
  * @property \App\Models\Lookup\SecurityClearance $security_clearance
23 23
  */
24
-class SecurityClearanceTranslation extends BaseModel {
24
+class SecurityClearanceTranslation extends BaseModel{
25 25
 
26 26
     protected $casts = [
27 27
         'security_clearance_id' => 'int'
28 28
     ];
29 29
     protected $fillable = [];
30 30
 
31
-    public function security_clearance() {
32
-        return $this->belongsTo(\App\Models\Lookup\SecurityClearance::class);
31
+    public function security_clearance(){
32
+        return $this->belongsTo (\App\Models\Lookup\SecurityClearance::class);
33 33
     }
34 34
 
35 35
 }
Please login to merge, or discard this patch.