@@ -124,7 +124,7 @@ |
||
| 124 | 124 | { |
| 125 | 125 | $prefix = $attribute . '.' . $ruleName; |
| 126 | 126 | |
| 127 | - $messages = array_filter($this->messages, static function ($key) use ($attribute, $prefix) { |
|
| 127 | + $messages = array_filter($this->messages, static function($key) use ($attribute, $prefix) { |
|
| 128 | 128 | return $key === $attribute || strpos($key, $prefix) === 0; |
| 129 | 129 | }, ARRAY_FILTER_USE_KEY); |
| 130 | 130 | |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | { |
| 53 | 53 | $attributes = array_keys($raw); |
| 54 | 54 | |
| 55 | - $rules = array_map(function ($attribute) use ($raw) { |
|
| 55 | + $rules = array_map(function($attribute) use ($raw) { |
|
| 56 | 56 | return $this->resolveRules($raw[$attribute]); |
| 57 | 57 | }, $attributes); |
| 58 | 58 | |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | |
| 82 | 82 | private function getRuleNames(array $rules) |
| 83 | 83 | { |
| 84 | - return array_map(function ($key) use ($rules) { |
|
| 84 | + return array_map(function($key) use ($rules) { |
|
| 85 | 85 | return is_int($key) ? $this->instantiator->make($rules[$key])->getName() : $key; |
| 86 | 86 | }, array_keys($rules)); |
| 87 | 87 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | return $this->cache[$string]; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - $this->cache[$string] = array_map(function ($rule) { |
|
| 28 | + $this->cache[$string] = array_map(function($rule) { |
|
| 29 | 29 | return $this->rules->make(...$this->getNameAndArguments($rule)); |
| 30 | 30 | }, explode('|', $string)); |
| 31 | 31 | |