@@ -28,11 +28,11 @@ |
||
28 | 28 | Validator::make($degreeValidator->getAttributes(), [ |
29 | 29 | 'applicant_id' => [ |
30 | 30 | 'required', |
31 | - Rule::in($applicant_ids->toArray()), |
|
31 | + Rule::in($applicant_ids->toArray()), |
|
32 | 32 | ], |
33 | 33 | 'degree_type_id' => [ |
34 | 34 | 'required', |
35 | - Rule::in($this->degree_type_id->toArray()), |
|
35 | + Rule::in($this->degree_type_id->toArray()), |
|
36 | 36 | ] |
37 | 37 | |
38 | 38 | ])->validate(); |
@@ -26,11 +26,11 @@ |
||
26 | 26 | Validator::make($workSamplesValidator->getAttributes(), [ |
27 | 27 | 'applicant_id' => [ |
28 | 28 | 'required', |
29 | - Rule::in($applicant_ids->toArray()), |
|
29 | + Rule::in($applicant_ids->toArray()), |
|
30 | 30 | ], |
31 | 31 | 'file_type_id' => [ |
32 | 32 | 'required', |
33 | - Rule::in($this->file_type_id->toArray()), |
|
33 | + Rule::in($this->file_type_id->toArray()), |
|
34 | 34 | ] |
35 | 35 | |
36 | 36 | ])->validate(); |
@@ -81,7 +81,7 @@ |
||
81 | 81 | protected function addNestedValidatorRules($nestedAttribute, $validatorRules, $rules = []) |
82 | 82 | { |
83 | 83 | // prepend the attribute name of each validator rule with the nested attribute name |
84 | - $newRules = $this->arrayMapKeys(function ($key) use ($nestedAttribute) { |
|
84 | + $newRules = $this->arrayMapKeys(function($key) use ($nestedAttribute) { |
|
85 | 85 | return implode('.', [$nestedAttribute, $key]); |
86 | 86 | }, |
87 | 87 | $validatorRules); |
@@ -81,7 +81,7 @@ |
||
81 | 81 | protected function addNestedValidatorRules($nestedAttribute, $validatorRules, $rules = []) |
82 | 82 | { |
83 | 83 | // prepend the attribute name of each validator rule with the nested attribute name |
84 | - $newRules = $this->arrayMapKeys(function ($key) use ($nestedAttribute) { |
|
84 | + $newRules = $this->arrayMapKeys(function ($key) use ($nestedAttribute){ |
|
85 | 85 | return implode('.', [$nestedAttribute, $key]); |
86 | 86 | }, |
87 | 87 | $validatorRules); |