Test Failed
Push — feature/immutable-application-... ( e0cf39...238d28 )
by Tristan
33:02 queued 10s
created
app/Services/Validation/Rules/ApplicantHasRelationRule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
      */
33 33
     public function passes($attribute, $value)
34 34
     {
35
-        return $this->applicant->getRelationValue($this->relation)
36
-            ->pluck('id')->contains($value);
35
+        return $this->applicant->getRelationValue ($this->relation)
36
+            ->pluck ('id')->contains ($value);
37 37
     }
38 38
 
39 39
     public function message()
40 40
     {
41
-        return Lang::get('validation.applicant_has_relation');
41
+        return Lang::get ('validation.applicant_has_relation');
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
app/Services/Validation/Rules/SkillDeclarationBelongsToUserRule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
      */
19 19
     public function passes($attribute, $value)
20 20
     {
21
-        return SkillDeclaration::find($value) &&
22
-            SkillDeclaration::find($value)->applicant->user->id == Auth::user()->id;
21
+        return SkillDeclaration::find ($value) &&
22
+            SkillDeclaration::find ($value)->applicant->user->id == Auth::user ()->id;
23 23
     }
24 24
 
25 25
     public function message()
26 26
     {
27
-        return Lang::get('validation.user_owns_skill_declaration');
27
+        return Lang::get ('validation.user_owns_skill_declaration');
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
app/Services/Validation/Rules/TwitterHandleRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function passes($attribute, $value)
30 30
     {
31
-        return preg_match('/' . self::PATTERN . '/', $value);
31
+        return preg_match ('/'.self::PATTERN.'/', $value);
32 32
     }
33 33
 
34 34
     /**
@@ -38,6 +38,6 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function message()
40 40
     {
41
-        return Lang::get('validation.custom.twitter_handle');
41
+        return Lang::get ('validation.custom.twitter_handle');
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
app/Services/Validation/JobPosterValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@
 block discarded – undo
17 17
      */
18 18
     public static function validateUnpublished(JobPoster $jobPoster)
19 19
     {
20
-        Validator::make(
21
-            $jobPoster->toArray(),
20
+        Validator::make (
21
+            $jobPoster->toArray (),
22 22
             [
23 23
                 'published' => [
24 24
                     'required',
25
-                    Rule::in([false])
25
+                    Rule::in ([false])
26 26
                 ]
27 27
             ]
28
-        )->validate();
28
+        )->validate ();
29 29
     }
30 30
 
31 31
 }
Please login to merge, or discard this patch.
app/Services/Validation/Requests/UpdateReferenceValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function __construct()
26 26
     {
27
-        $this->relationshipIds = Relationship::all()->pluck('id')->toArray();
27
+        $this->relationshipIds = Relationship::all ()->pluck ('id')->toArray ();
28 28
     }
29 29
     /**
30 30
      * Get the validation rules that apply to the request.
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             ],
44 44
             'relationship_id' => [
45 45
                 'required',
46
-                Rule::in($this->relationshipIds)
46
+                Rule::in ($this->relationshipIds)
47 47
             ],
48 48
             'description' => 'required|string',
49 49
 
@@ -68,6 +68,6 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function validator(array $data) : \Illuminate\Validation\Validator
70 70
     {
71
-        return Validator::make($data, $this->rules());
71
+        return Validator::make ($data, $this->rules ());
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Services/Validation/Requests/UpdateWorkSampleValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function __construct()
26 26
     {
27
-        $this->fileTypeIds = FileType::all()->pluck('id')->toArray();
27
+        $this->fileTypeIds = FileType::all ()->pluck ('id')->toArray ();
28 28
     }
29 29
     /**
30 30
      * Get the validation rules that apply to the request.
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             'name' => 'required|string|max:191',
39 39
             'file_type_id' => [
40 40
                 'required',
41
-                Rule::in($this->fileTypeIds)
41
+                Rule::in ($this->fileTypeIds)
42 42
             ],
43 43
             'url' => 'required|url',
44 44
             'description' => 'required|string',
@@ -57,6 +57,6 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function validator(array $data) : \Illuminate\Validation\Validator
59 59
     {
60
-        return Validator::make($data, $this->rules());
60
+        return Validator::make ($data, $this->rules ());
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
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/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.