Passed
Push — dependabot/npm_and_yarn/dev/re... ( 1111e8 )
by
unknown
31:44 queued 16:01
created
app/Models/Lookup/CourseStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Models/Lookup/DegreeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Models/Lookup/ApplicantProfileQuestion.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,21 +24,21 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Models/Lookup/ReviewStatus.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Models/Lookup/SkillType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Models/Lookup/Frequency.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Models/Lookup/PreferredLanguage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Policies/ApplicantPolicy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/Policies/BasePolicy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.