@@ -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; |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $authManager = ($user->isManager() && |
26 | 26 | $jobApplication->job_poster->manager->user->is($user)); |
27 | 27 | |
28 | - return $authApplicant||$authManager; |
|
28 | + return $authApplicant || $authManager; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -5,9 +5,9 @@ |
||
5 | 5 | use App\Models\RatingGuideQuestion; |
6 | 6 | use App\Models\JobPoster; |
7 | 7 | |
8 | -$factory->define(RatingGuideQuestion::class, function (Faker\Generator $faker) { |
|
8 | +$factory->define(RatingGuideQuestion::class, function(Faker\Generator $faker){ |
|
9 | 9 | return [ |
10 | - 'job_poster_id' => function () { |
|
10 | + 'job_poster_id' => function(){ |
|
11 | 11 | return factory(JobPoster::class)->create()->id; |
12 | 12 | }, |
13 | 13 | 'assessment_type_id' => AssessmentType::inRandomOrder()->first()->id, |
@@ -6,16 +6,16 @@ |
||
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 () { |
|
11 | + 'criterion_id' => function(){ |
|
12 | 12 | return factory(Criteria::class)->create()->id; |
13 | 13 | }, |
14 | 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 | 20 | $question = factory(RatingGuideQuestion::class)->create([ |
21 | 21 | 'job_poster_id' => $assessment->criterion->job_poster_id, |