Test Setup Failed
Push — feature/word_counter ( 45e6a8...1e9fcb )
by Tristan
14:34
created
app/Notifications/ResetPasswordNotification.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      * Get the notification's delivery channels.
35 35
      *
36 36
      * @param  mixed  $notifiable
37
-     * @return array
37
+     * @return string[]
38 38
      */
39 39
     public function via($notifiable)
40 40
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Bus\Queueable;
6 6
 use Illuminate\Notifications\Notification;
7
-use Illuminate\Contracts\Queue\ShouldQueue;
8 7
 use Illuminate\Notifications\Messages\MailMessage;
9 8
 use Illuminate\Support\Facades\Lang;
10 9
 
Please login to merge, or discard this patch.
app/Policies/ApplicantPolicy.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @param  \App\Models\User  $user
33 33
      * @param  \App\Models\Applicant  $applicant
34
-     * @return mixed
34
+     * @return boolean
35 35
      */
36 36
     public function view(User $user, Applicant $applicant)
37 37
     {
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * Determine whether the user can create applicants.
46 46
      *
47 47
      * @param  \App\Models\User  $user
48
-     * @return mixed
48
+     * @return boolean
49 49
      */
50 50
     public function create(User $user)
51 51
     {
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @param  \App\Models\User  $user
59 59
      * @param  \App\Models\Applicant  $applicant
60
-     * @return mixed
60
+     * @return boolean
61 61
      */
62 62
     public function update(User $user, Applicant $applicant)
63 63
     {
Please login to merge, or discard this patch.
app/Policies/ApplicationPolicy.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
      * Determine whether the user can view the jobApplication.
16 16
      *
17 17
      * @param  \App\Models\User  $user
18
-     * @param  \App\JobApplication  $jobApplication
19
-     * @return mixed
18
+     * @param  JobApplication  $jobApplication
19
+     * @return boolean
20 20
      */
21 21
     public function view(User $user, JobApplication $jobApplication)
22 22
     {
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * Determine whether the user can create jobApplications.
33 33
      *
34 34
      * @param  \App\Models\User  $user
35
-     * @return mixed
35
+     * @return boolean
36 36
      */
37 37
     public function create(User $user)
38 38
     {
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
      * Determine whether the user can update the jobApplication.
44 44
      *
45 45
      * @param  \App\Models\User  $user
46
-     * @param  \App\JobApplication  $jobApplication
47
-     * @return mixed
46
+     * @param  JobApplication  $jobApplication
47
+     * @return boolean
48 48
      */
49 49
     public function update(User $user, JobApplication $jobApplication)
50 50
     {
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
      * Determine whether the user can delete the jobApplication.
59 59
      *
60 60
      * @param  \App\Models\User  $user
61
-     * @param  \App\JobApplication  $jobApplication
62
-     * @return mixed
61
+     * @param  JobApplication  $jobApplication
62
+     * @return boolean
63 63
      */
64 64
     public function delete(User $user, JobApplication $jobApplication)
65 65
     {
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
      * Determine whether the user can review the jobApplication.
73 73
      *
74 74
      * @param  \App\Models\User  $user
75
-     * @param  \App\JobApplication  $jobApplication
76
-     * @return mixed
75
+     * @param  JobApplication  $jobApplication
76
+     * @return boolean
77 77
      */
78 78
     public function review(User $user, JobApplication $jobApplication)
79 79
     {
Please login to merge, or discard this patch.
app/Services/Validation/ApplicationValidator.php 2 patches
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Return a copy of $array, with function $fn applied to each key, but values left unchanged.
64 64
      *
65
-     * @param function $fn    Function applied to each key.
65
+     * @param \Closure $fn    Function applied to each key.
66 66
      * @param array    $array Array to operate on.
67 67
      * @return array
68 68
      */
@@ -75,6 +75,9 @@  discard block
 block discarded – undo
75 75
         return $newArray;
76 76
     }
77 77
 
78
+    /**
79
+     * @param string $nestedAttribute
80
+     */
78 81
     protected function addNestedValidatorRules($nestedAttribute, $validatorRules, $rules = []) {
79 82
         // prepend the attribute name of each validator rule with the nested attribute name
80 83
         $newRules = $this->arrayMapKeys(function($key) use ($nestedAttribute) {
@@ -130,6 +133,9 @@  discard block
 block discarded – undo
130 133
         return $this->experienceValidator($application)->passes();
131 134
     }
132 135
 
136
+    /**
137
+     * @param string $criteria_type
138
+     */
133 139
     protected function skillsValidator(JobApplication $application, $criteria_type) {
134 140
         $rules = [];
135 141
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use App\Models\JobApplication;
6 6
 use Illuminate\Support\Facades\Validator;
7 7
 use Illuminate\Validation\Rule;
8
-use Illuminate\Validation\Validator as BaseValidator;
9 8
 use App\Models\Lookup\CitizenshipDeclaration;
10 9
 use App\Models\Lookup\CriteriaType;
11 10
 use App\Models\Lookup\VeteranStatus;
Please login to merge, or discard this patch.
app/Services/Validation/Rules/ApplicantHasRelationRule.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Services\Validation\Rules;
4 4
 
5 5
 use Illuminate\Contracts\Validation\Rule;
6
-use Illuminate\Support\Facades\Hash;
7
-use Illuminate\Support\Facades\Auth;
8 6
 use Illuminate\Support\Facades\Lang;
9 7
 use App\Models\Applicant;
10 8
 
Please login to merge, or discard this patch.
app/Services/Validation/Rules/ContainsObjectWithAttributeRule.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * Create a new rule instance.
16 16
      *
17
-     * @param  App\Models\Applicant  $applicant
18
-     * @param  string  $relation
17
+     * @param string $attributeName
19 18
      * @return void
20 19
      */
21 20
     public function __construct($attributeName, $attributeValue)
Please login to merge, or discard this patch.
app/Services/Validation/Rules/CourseValidator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace App\Services\Validation;
3 3
 use Illuminate\Support\Facades\Validator;
4 4
 use Illuminate\Validation\Rule;
5
-use App\Models\Course;
6 5
 use App\Models\Lookup\CourseStatus;
7 6
 use App\Models\Applicant;
8 7
 use App\Services\Validation\Rules\UniqueApplicantSkillRule;
Please login to merge, or discard this patch.
app/Services/Validation/Rules/DegreeValidator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace App\Services\Validation;
3 3
 use Illuminate\Support\Facades\Validator;
4 4
 use Illuminate\Validation\Rule;
5
-use App\Models\Degree;
6 5
 use App\Models\Lookup\DegreeType;
7 6
 use App\Models\Applicant;
8 7
 use App\Services\Validation\Rules\UniqueApplicantSkillRule;
Please login to merge, or discard this patch.
app/Services/Validation/Rules/PassesValidatorRule.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,6 @@
 block discarded – undo
13 13
     /**
14 14
      * Create a new rule instance.
15 15
      *
16
-     * @param  App\Models\Applicant  $applicant
17
-     * @param  string  $relation
18 16
      * @return void
19 17
      */
20 18
     public function __construct($validator)
Please login to merge, or discard this patch.