@@ -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 | } |
@@ -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 | } |
@@ -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 |
@@ -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 |
@@ -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 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * @property \Jenssegers\Date\Date $created_at |
13 | 13 | * @property \Jenssegers\Date\Date $updated_at |
14 | 14 | */ |
15 | -class Frequency extends BaseModel { |
|
15 | +class Frequency extends BaseModel{ |
|
16 | 16 | |
17 | 17 | protected $fillable = []; |
18 | 18 |
@@ -15,11 +15,11 @@ |
||
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 | |
22 | - public function job_applications() { |
|
22 | + public function job_applications(){ |
|
23 | 23 | return $this->hasMany(\App\Models\JobApplication::class); |
24 | 24 | } |
25 | 25 |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | $user_id = $user->id; |
24 | 24 | return JobPoster::whereHas( |
25 | 25 | 'manager', |
26 | - function ($q) use ($user_id) { |
|
26 | + function($q) use ($user_id) { |
|
27 | 27 | $q->where('user_id', $user_id); |
28 | 28 | } |
29 | 29 | )->whereHas( |
30 | 30 | 'submitted_applications', |
31 | - function ($q) use ($applicant_id) { |
|
31 | + function($q) use ($applicant_id) { |
|
32 | 32 | $q->where('applicant_id', $applicant_id); |
33 | 33 | } |
34 | 34 | )->get()->isNotEmpty(); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function view(User $user, Applicant $applicant) |
45 | 45 | { |
46 | - $authApplicant = $user->isApplicant() && |
|
46 | + $authApplicant = $user->isApplicant() && |
|
47 | 47 | $applicant->user->is($user); |
48 | 48 | $authManager = $user->isManager() && $this->ownsJobApplicantAppliedTo($user, $applicant); |
49 | 49 | return $authApplicant || $authManager; |
@@ -12,8 +12,8 @@ |
||
12 | 12 | public function before($user, $ability) |
13 | 13 | { |
14 | 14 | if ($user->isAdmin()) { |
15 | - $userText = '{id='.$user->id.'}'; |
|
16 | - Log::notice('User '.$userText.' has bypassed policy as an Admin'); |
|
15 | + $userText = '{id=' . $user->id . '}'; |
|
16 | + Log::notice('User ' . $userText . ' has bypassed policy as an Admin'); |
|
17 | 17 | return true; |
18 | 18 | } |
19 | 19 | } |