@@ -68,13 +68,13 @@ discard block |
||
68 | 68 | $filtered = []; |
69 | 69 | $rules = collect($this->buildRules()); |
70 | 70 | $keys = $rules->keys(); |
71 | - $rules->each(function ($rules, $key) use ($original, $keys, &$filtered) { |
|
71 | + $rules->each(function($rules, $key) use ($original, $keys, &$filtered) { |
|
72 | 72 | //Allow for array or pipe-delimited rule-sets |
73 | 73 | if (is_string($rules)) { |
74 | 74 | $rules = explode('|', $rules); |
75 | 75 | } |
76 | 76 | //In case a rule requires an element to be an array, look for nested rules |
77 | - $nestedRules = $keys->filter(function ($otherKey) use ($key) { |
|
77 | + $nestedRules = $keys->filter(function($otherKey) use ($key) { |
|
78 | 78 | return (strpos($otherKey, "$key.") === 0); |
79 | 79 | }); |
80 | 80 | //If the input must be an array, default missing nested rules to a wildcard |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | } |
136 | 136 | |
137 | 137 | if (method_exists($this, 'afterValidator')) { |
138 | - $validator->after(function ($validator) { |
|
138 | + $validator->after(function($validator) { |
|
139 | 139 | $this->resolveAndCall($this, 'afterValidator', compact('validator')); |
140 | 140 | }); |
141 | 141 | } |