@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * |
21 | 21 | * @property \App\Models\User $user |
22 | 22 | */ |
23 | -class ProfilePic extends BaseModel { |
|
23 | +class ProfilePic extends BaseModel{ |
|
24 | 24 | |
25 | 25 | protected $casts = [ |
26 | 26 | 'user_id' => 'int', |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | 'image' |
32 | 32 | ]; |
33 | 33 | |
34 | - public function user() { |
|
34 | + public function user(){ |
|
35 | 35 | return $this->belongsTo(\App\Models\User::class); |
36 | 36 | } |
37 | 37 |
@@ -20,7 +20,8 @@ discard block |
||
20 | 20 | * |
21 | 21 | * @property \App\Models\User $user |
22 | 22 | */ |
23 | -class ProfilePic extends BaseModel { |
|
23 | +class ProfilePic extends BaseModel |
|
24 | +{ |
|
24 | 25 | |
25 | 26 | protected $casts = [ |
26 | 27 | 'user_id' => 'int', |
@@ -31,7 +32,8 @@ discard block |
||
31 | 32 | 'image' |
32 | 33 | ]; |
33 | 34 | |
34 | - public function user() { |
|
35 | + public function user() |
|
36 | + { |
|
35 | 37 | return $this->belongsTo(\App\Models\User::class); |
36 | 38 | } |
37 | 39 |
@@ -373,7 +373,7 @@ |
||
373 | 373 | */ |
374 | 374 | public function submitted_applications() // phpcs:ignore |
375 | 375 | { |
376 | - return $this->hasMany(\App\Models\JobApplication::class)->whereDoesntHave('application_status', function ($query): void { |
|
376 | + return $this->hasMany(\App\Models\JobApplication::class)->whereDoesntHave('application_status', function($query): void { |
|
377 | 377 | $query->where('name', 'draft'); |
378 | 378 | }); |
379 | 379 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @property \Illuminate\Database\Eloquent\Collection $skill_declarations |
20 | 20 | */ |
21 | -class SkillStatus extends BaseModel { |
|
21 | +class SkillStatus extends BaseModel{ |
|
22 | 22 | |
23 | 23 | protected $fillable = [ |
24 | 24 | 'name' |
@@ -29,12 +29,12 @@ discard block |
||
29 | 29 | */ |
30 | 30 | protected $appends = ['status']; |
31 | 31 | |
32 | - public function skill_declarations() { |
|
32 | + public function skill_declarations(){ |
|
33 | 33 | return $this->hasMany(\App\Models\SkillDeclaration::class); |
34 | 34 | } |
35 | 35 | |
36 | 36 | // Accessors |
37 | - public function getStatusAttribute() { |
|
37 | + public function getStatusAttribute(){ |
|
38 | 38 | return Lang::get('common/skills.status')[$this->name]; |
39 | 39 | } |
40 | 40 | } |
@@ -18,7 +18,8 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @property \Illuminate\Database\Eloquent\Collection $skill_declarations |
20 | 20 | */ |
21 | -class SkillStatus extends BaseModel { |
|
21 | +class SkillStatus extends BaseModel |
|
22 | +{ |
|
22 | 23 | |
23 | 24 | protected $fillable = [ |
24 | 25 | 'name' |
@@ -29,12 +30,14 @@ discard block |
||
29 | 30 | */ |
30 | 31 | protected $appends = ['status']; |
31 | 32 | |
32 | - public function skill_declarations() { |
|
33 | + public function skill_declarations() |
|
34 | + { |
|
33 | 35 | return $this->hasMany(\App\Models\SkillDeclaration::class); |
34 | 36 | } |
35 | 37 | |
36 | 38 | // Accessors |
37 | - public function getStatusAttribute() { |
|
39 | + public function getStatusAttribute() |
|
40 | + { |
|
38 | 41 | return Lang::get('common/skills.status')[$this->name]; |
39 | 42 | } |
40 | 43 | } |
@@ -15,11 +15,11 @@ |
||
15 | 15 | * @property \Illuminate\Database\Eloquent\Collection $job_applications |
16 | 16 | * |
17 | 17 | */ |
18 | -class VeteranStatus extends BaseModel { |
|
18 | +class VeteranStatus extends BaseModel{ |
|
19 | 19 | |
20 | 20 | protected $fillable = []; |
21 | 21 | |
22 | - public function job_applications() { |
|
22 | + public function job_applications(){ |
|
23 | 23 | return $this->hasMany(\App\Models\JobApplication::class); |
24 | 24 | } |
25 | 25 |
@@ -15,11 +15,13 @@ |
||
15 | 15 | * @property \Illuminate\Database\Eloquent\Collection $job_applications |
16 | 16 | * |
17 | 17 | */ |
18 | -class VeteranStatus extends BaseModel { |
|
18 | +class VeteranStatus extends BaseModel |
|
19 | +{ |
|
19 | 20 | |
20 | 21 | protected $fillable = []; |
21 | 22 | |
22 | - public function job_applications() { |
|
23 | + public function job_applications() |
|
24 | + { |
|
23 | 25 | return $this->hasMany(\App\Models\JobApplication::class); |
24 | 26 | } |
25 | 27 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | protected $table = 'course_status'; |
20 | 20 | protected $fillable = []; |
21 | 21 | |
22 | - public function courses() { |
|
22 | + public function courses(){ |
|
23 | 23 | return $this->hasMany(\App\Models\Course::class); |
24 | 24 | } |
25 | 25 | } |
@@ -19,7 +19,8 @@ |
||
19 | 19 | protected $table = 'course_status'; |
20 | 20 | protected $fillable = []; |
21 | 21 | |
22 | - public function courses() { |
|
22 | + public function courses() |
|
23 | + { |
|
23 | 24 | return $this->hasMany(\App\Models\Course::class); |
24 | 25 | } |
25 | 26 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | protected $fillable = []; |
20 | 20 | |
21 | - public function degrees() { |
|
21 | + public function degrees(){ |
|
22 | 22 | return $this->hasMany(\App\Models\Degree::class); |
23 | 23 | } |
24 | 24 | } |
@@ -18,7 +18,8 @@ |
||
18 | 18 | { |
19 | 19 | protected $fillable = []; |
20 | 20 | |
21 | - public function degrees() { |
|
21 | + public function degrees() |
|
22 | + { |
|
22 | 23 | return $this->hasMany(\App\Models\Degree::class); |
23 | 24 | } |
24 | 25 | } |
@@ -24,21 +24,21 @@ |
||
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 | |
31 | - public function applicant_profile_answers() { |
|
31 | + public function applicant_profile_answers(){ |
|
32 | 32 | return $this->hasMany(\App\Models\ApplicantProfileAnswer::class); |
33 | 33 | } |
34 | 34 | |
35 | 35 | // Accessors |
36 | 36 | |
37 | - public function getQuestionAttribute() { |
|
37 | + public function getQuestionAttribute(){ |
|
38 | 38 | return Lang::get('common/lookup/applicant_profile_questions')[$this->name]['question']; |
39 | 39 | } |
40 | 40 | |
41 | - public function getDescriptionAttribute() { |
|
41 | + public function getDescriptionAttribute(){ |
|
42 | 42 | return Lang::get('common/lookup/applicant_profile_questions')[$this->name]['description']; |
43 | 43 | } |
44 | 44 |
@@ -24,21 +24,25 @@ |
||
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 | 30 | protected $fillable = []; |
30 | 31 | |
31 | - public function applicant_profile_answers() { |
|
32 | + public function applicant_profile_answers() |
|
33 | + { |
|
32 | 34 | return $this->hasMany(\App\Models\ApplicantProfileAnswer::class); |
33 | 35 | } |
34 | 36 | |
35 | 37 | // Accessors |
36 | 38 | |
37 | - public function getQuestionAttribute() { |
|
39 | + public function getQuestionAttribute() |
|
40 | + { |
|
38 | 41 | return Lang::get('common/lookup/applicant_profile_questions')[$this->name]['question']; |
39 | 42 | } |
40 | 43 | |
41 | - public function getDescriptionAttribute() { |
|
44 | + public function getDescriptionAttribute() |
|
45 | + { |
|
42 | 46 | return Lang::get('common/lookup/applicant_profile_questions')[$this->name]['description']; |
43 | 47 | } |
44 | 48 |
@@ -16,11 +16,11 @@ |
||
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 | |
23 | - public function getTranslationAttribute() { |
|
23 | + public function getTranslationAttribute(){ |
|
24 | 24 | return Lang::get('common/lookup/review_status')[$this->name]; |
25 | 25 | } |
26 | 26 |
@@ -16,11 +16,13 @@ |
||
16 | 16 | * Acessors: |
17 | 17 | * @property string $translation |
18 | 18 | */ |
19 | -class ReviewStatus extends BaseModel { |
|
19 | +class ReviewStatus extends BaseModel |
|
20 | +{ |
|
20 | 21 | |
21 | 22 | protected $fillable = []; |
22 | 23 | |
23 | - public function getTranslationAttribute() { |
|
24 | + public function getTranslationAttribute() |
|
25 | + { |
|
24 | 26 | return Lang::get('common/lookup/review_status')[$this->name]; |
25 | 27 | } |
26 | 28 |
@@ -14,13 +14,13 @@ |
||
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' |
21 | 21 | ]; |
22 | 22 | |
23 | - public function skills() { |
|
23 | + public function skills(){ |
|
24 | 24 | return $this->hasMany(\App\Models\Skill::class); |
25 | 25 | } |
26 | 26 | } |
@@ -14,13 +14,15 @@ |
||
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 | 20 | protected $fillable = [ |
20 | 21 | 'name' |
21 | 22 | ]; |
22 | 23 | |
23 | - public function skills() { |
|
24 | + public function skills() |
|
25 | + { |
|
24 | 26 | return $this->hasMany(\App\Models\Skill::class); |
25 | 27 | } |
26 | 28 | } |