Passed
Push — task/add-manager-resource ( c74771 )
by Chris
11:48
created
app/Services/Validation/Requests/UpdateApplicationProfileValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                 'email',
50 50
                 // Email may match existing email for this user,
51 51
                 // but must be unique if changed.
52
-                Rule::unique('users', 'email')->ignore($this->applicant->user->id)
52
+                Rule::unique ('users', 'email')->ignore ($this->applicant->user->id)
53 53
             ],
54 54
 
55 55
             // Password validation.
@@ -99,6 +99,6 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function validator(array $data) : \Illuminate\Validation\Validator
101 101
     {
102
-        return Validator::make($data, $this->rules());
102
+        return Validator::make ($data, $this->rules ());
103 103
     }
104 104
 }
Please login to merge, or discard this patch.
app/Services/Validation/BaseDataValidator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function validate(array $data): void
16 16
     {
17
-        $this->validator($data)->validate();
17
+        $this->validator ($data)->validate ();
18 18
     }
19 19
 
20 20
     /**
@@ -25,6 +25,6 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function isValid(array $data) : bool
27 27
     {
28
-        return $this->validator($data)->passes();
28
+        return $this->validator ($data)->passes ();
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
app/Models/SkillDeclaration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,31 +50,31 @@
 block discarded – undo
50 50
 
51 51
     public function skill()// phpcs:ignore
52 52
     {
53
-        return $this->belongsTo(\App\Models\Skill::class);
53
+        return $this->belongsTo (\App\Models\Skill::class);
54 54
     }
55 55
 
56 56
     public function skill_status()// phpcs:ignore
57 57
     {
58
-        return $this->belongsTo(\App\Models\Lookup\SkillStatus::class);
58
+        return $this->belongsTo (\App\Models\Lookup\SkillStatus::class);
59 59
     }
60 60
 
61 61
     public function skill_level()// phpcs:ignore
62 62
     {
63
-        return $this->belongsTo(\App\Models\Lookup\SkillLevel::class);
63
+        return $this->belongsTo (\App\Models\Lookup\SkillLevel::class);
64 64
     }
65 65
 
66 66
     public function applicant()// phpcs:ignore
67 67
     {
68
-        return $this->belongsTo(\App\Models\Applicant::class);
68
+        return $this->belongsTo (\App\Models\Applicant::class);
69 69
     }
70 70
 
71 71
     public function references()// phpcs:ignore
72 72
     {
73
-        return $this->belongsToMany(\App\Models\Reference::class);
73
+        return $this->belongsToMany (\App\Models\Reference::class);
74 74
     }
75 75
 
76 76
     public function work_samples()// phpcs:ignore
77 77
     {
78
-        return $this->belongsToMany(\App\Models\WorkSample::class);
78
+        return $this->belongsToMany (\App\Models\WorkSample::class);
79 79
     }
80 80
 }
Please login to merge, or discard this patch.
app/Models/Applicant.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -55,54 +55,54 @@
 block discarded – undo
55 55
 
56 56
     public function user()
57 57
     {
58
-        return $this->belongsTo(\App\Models\User::class);
58
+        return $this->belongsTo (\App\Models\User::class);
59 59
     }
60 60
 
61 61
     public function applicant_profile_answers()
62 62
     {
63
-        return $this->hasMany(\App\Models\ApplicantProfileAnswer::class);
63
+        return $this->hasMany (\App\Models\ApplicantProfileAnswer::class);
64 64
     }
65 65
 
66 66
     public function job_applications()
67 67
     {
68 68
         if ($this->is_snapshot) {
69
-            return $this->hasMany(\App\Models\JobApplication::class, 'applicant_snapshot_id');
69
+            return $this->hasMany (\App\Models\JobApplication::class, 'applicant_snapshot_id');
70 70
         }
71
-        return $this->hasMany(\App\Models\JobApplication::class);
71
+        return $this->hasMany (\App\Models\JobApplication::class);
72 72
     }
73 73
 
74 74
     public function degrees()
75 75
     {
76
-        return $this->hasMany(\App\Models\Degree::class)->orderBy('end_date', 'desc');
76
+        return $this->hasMany (\App\Models\Degree::class)->orderBy ('end_date', 'desc');
77 77
     }
78 78
 
79 79
     public function courses()
80 80
     {
81
-        return $this->hasMany(\App\Models\Course::class)->orderBy('end_date', 'desc');
81
+        return $this->hasMany (\App\Models\Course::class)->orderBy ('end_date', 'desc');
82 82
     }
83 83
 
84 84
     public function work_experiences()
85 85
     {
86
-        return $this->hasMany(\App\Models\WorkExperience::class)->orderBy('end_date', 'desc');
86
+        return $this->hasMany (\App\Models\WorkExperience::class)->orderBy ('end_date', 'desc');
87 87
     }
88 88
 
89 89
     public function skill_declarations()
90 90
     {
91
-        return $this->hasMany(\App\Models\SkillDeclaration::class);
91
+        return $this->hasMany (\App\Models\SkillDeclaration::class);
92 92
     }
93 93
 
94 94
     public function references()
95 95
     {
96
-        return $this->hasMany(\App\Models\Reference::class);
96
+        return $this->hasMany (\App\Models\Reference::class);
97 97
     }
98 98
 
99 99
     public function work_samples()
100 100
     {
101
-        return $this->hasMany(\App\Models\WorkSample::class);
101
+        return $this->hasMany (\App\Models\WorkSample::class);
102 102
     }
103 103
 
104 104
     public function projects()
105 105
     {
106
-        return $this->hasMany(\App\Models\Project::class);
106
+        return $this->hasMany (\App\Models\Project::class);
107 107
     }
108 108
 }
Please login to merge, or discard this patch.
app/Models/Classification.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
 
28 28
     public function skills()
29 29
     {
30
-        return $this->belongsToMany(\App\Models\Skill::class)->withTimestamps();
30
+        return $this->belongsToMany (\App\Models\Skill::class)->withTimestamps ();
31 31
     }
32 32
 
33 33
     public function job_posters() //phpcs:ignore
34 34
     {
35
-        return $this->belongsToMany(\App\Models\JobPoster::class);
35
+        return $this->belongsToMany (\App\Models\JobPoster::class);
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
app/Models/WorkSample.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,16 +45,16 @@
 block discarded – undo
45 45
 
46 46
     public function file_type()
47 47
     {
48
-        return $this->belongsTo(\App\Models\Lookup\FileType::class);
48
+        return $this->belongsTo (\App\Models\Lookup\FileType::class);
49 49
     }
50 50
 
51 51
     public function skill_declarations()
52 52
     {
53
-        return $this->belongsToMany(\App\Models\SkillDeclaration::class);
53
+        return $this->belongsToMany (\App\Models\SkillDeclaration::class);
54 54
     }
55 55
 
56 56
     public function applicant()
57 57
     {
58
-        return $this->belongsTo(\App\Models\Applicant::class);
58
+        return $this->belongsTo (\App\Models\Applicant::class);
59 59
     }
60 60
 }
Please login to merge, or discard this patch.
app/Models/WorkExperience.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,6 +44,6 @@
 block discarded – undo
44 44
 
45 45
     public function applicant()
46 46
     {
47
-        return $this->belongsTo(\App\Models\Applicant::class);
47
+        return $this->belongsTo (\App\Models\Applicant::class);
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
app/Models/UserRole.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
 
24 24
     public function users()
25 25
     {
26
-        return $this->hasMany(\App\Models\User::class);
26
+        return $this->hasMany (\App\Models\User::class);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
app/Models/Skill.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,17 +60,17 @@  discard block
 block discarded – undo
60 60
 
61 61
     public function skill_type() // phpcs:ignore
62 62
     {
63
-        return $this->belongsTo(\App\Models\Lookup\SkillType::class);
63
+        return $this->belongsTo (\App\Models\Lookup\SkillType::class);
64 64
     }
65 65
 
66 66
     public function skill_declarations() // phpcs:ignore
67 67
     {
68
-        return $this->hasMany(\App\Models\SkillDeclaration::class);
68
+        return $this->hasMany (\App\Models\SkillDeclaration::class);
69 69
     }
70 70
 
71 71
     public function classifications() // phpcs:ignore
72 72
     {
73
-        return $this->belongsToMany(\App\Models\Classification::class)->withTimestamps();
73
+        return $this->belongsToMany (\App\Models\Classification::class)->withTimestamps ();
74 74
     }
75 75
 
76 76
     /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function toArray() : array
113 113
     {
114
-        $array = parent::toArray();
114
+        $array = parent::toArray ();
115 115
         $array['name'] = $this->name;
116 116
         $array['description'] = $this->description;
117 117
         return $array;
Please login to merge, or discard this patch.