@@ -56,19 +56,19 @@ discard block |
||
| 56 | 56 | 'preference', |
| 57 | 57 | ]; |
| 58 | 58 | |
| 59 | - public function managers() // phpcs:ignore |
|
| 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 | - public function department_translations() // phpcs:ignore |
|
| 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 | - public function job_posters() // phpcs:ignore |
|
| 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 | /** |
@@ -76,13 +76,13 @@ discard block |
||
| 76 | 76 | * |
| 77 | 77 | * @return mixed[] |
| 78 | 78 | */ |
| 79 | - public function toApiArray() |
|
| 79 | + public function toApiArray () |
|
| 80 | 80 | { |
| 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; |
@@ -28,8 +28,8 @@ |
||
| 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 | } |
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | ]; |
| 29 | 29 | protected $fillable = []; |
| 30 | 30 | |
| 31 | - public function province() { |
|
| 32 | - return $this->belongsTo(\App\Models\Lookup\Province::class); |
|
| 31 | + public function province () { |
|
| 32 | + return $this->belongsTo (\App\Models\Lookup\Province::class); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | } |
@@ -32,13 +32,13 @@ |
||
| 32 | 32 | public $translatedAttributes = ['value']; |
| 33 | 33 | protected $fillable = []; |
| 34 | 34 | |
| 35 | - public function job_posters() //phpcs:ignore |
|
| 35 | + public function job_posters () //phpcs:ignore |
|
| 36 | 36 | { |
| 37 | - return $this->hasMany(\App\Models\JobPoster::class); |
|
| 37 | + return $this->hasMany (\App\Models\JobPoster::class); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function security_clearance_translations() //phpcs:ignore |
|
| 40 | + public function security_clearance_translations () //phpcs:ignore |
|
| 41 | 41 | { |
| 42 | - return $this->hasMany(\App\Models\Lookup\SecurityClearanceTranslation::class); |
|
| 42 | + return $this->hasMany (\App\Models\Lookup\SecurityClearanceTranslation::class); |
|
| 43 | 43 | } |
| 44 | 44 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | protected $table = 'course_status'; |
| 20 | 20 | protected $fillable = []; |
| 21 | 21 | |
| 22 | - public function courses() { |
|
| 23 | - return $this->hasMany(\App\Models\Course::class); |
|
| 22 | + public function courses () { |
|
| 23 | + return $this->hasMany (\App\Models\Course::class); |
|
| 24 | 24 | } |
| 25 | 25 | } |
@@ -32,13 +32,13 @@ |
||
| 32 | 32 | public $translatedAttributes = ['value']; |
| 33 | 33 | protected $fillable = []; |
| 34 | 34 | |
| 35 | - public function job_posters() //phpcs:ignore |
|
| 35 | + public function job_posters () //phpcs:ignore |
|
| 36 | 36 | { |
| 37 | - return $this->hasMany(\App\Models\JobPoster::class); |
|
| 37 | + return $this->hasMany (\App\Models\JobPoster::class); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function language_requirement_translations() //phpcs:ignore |
|
| 40 | + public function language_requirement_translations () //phpcs:ignore |
|
| 41 | 41 | { |
| 42 | - return $this->hasMany(\App\Models\Lookup\LanguageRequirementTranslation::class); |
|
| 42 | + return $this->hasMany (\App\Models\Lookup\LanguageRequirementTranslation::class); |
|
| 43 | 43 | } |
| 44 | 44 | } |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | 'name', |
| 34 | 34 | ]; |
| 35 | 35 | |
| 36 | - public function assessment_type() { |
|
| 37 | - return $this->belongsTo(\App\Models\Lookup\AssessmentType::class); |
|
| 36 | + public function assessment_type () { |
|
| 37 | + return $this->belongsTo (\App\Models\Lookup\AssessmentType::class); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | } |
@@ -28,8 +28,8 @@ |
||
| 28 | 28 | ]; |
| 29 | 29 | protected $fillable = []; |
| 30 | 30 | |
| 31 | - public function file_type() { |
|
| 32 | - return $this->belongsTo(\App\Models\Lookup\FileType::class); |
|
| 31 | + public function file_type () { |
|
| 32 | + return $this->belongsTo (\App\Models\Lookup\FileType::class); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | } |
@@ -32,13 +32,13 @@ |
||
| 32 | 32 | public $translatedAttributes = ['value']; |
| 33 | 33 | protected $fillable = []; |
| 34 | 34 | |
| 35 | - public function skill_declarations() //phpcs:ignore |
|
| 35 | + public function skill_declarations () //phpcs:ignore |
|
| 36 | 36 | { |
| 37 | - return $this->hasMany(\App\Models\SkillDeclaration::class); |
|
| 37 | + return $this->hasMany (\App\Models\SkillDeclaration::class); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function skill_level_translations() //phpcs:ignore |
|
| 40 | + public function skill_level_translations () //phpcs:ignore |
|
| 41 | 41 | { |
| 42 | - return $this->hasMany(\App\Models\Lookup\SkillLevelTranslation::class); |
|
| 42 | + return $this->hasMany (\App\Models\Lookup\SkillLevelTranslation::class); |
|
| 43 | 43 | } |
| 44 | 44 | } |