@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * @param string $key |
| 32 | 32 | * @return array|null |
| 33 | 33 | */ |
| 34 | - public function get(string $key): ?array; |
|
| 34 | + public function get(string $key): ? array; |
|
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * Get all of the messages in the bag. |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | { |
| 270 | 270 | if (!empty($item['args'])) { |
| 271 | 271 | $args = $item['args']; |
| 272 | - $argReplace = array_map(function ($i) { |
|
| 272 | + $argReplace = array_map(function($i) { |
|
| 273 | 273 | return "{\${$i}}"; |
| 274 | 274 | }, array_keys($args)); |
| 275 | 275 | $args[] = count($item['args']); |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | */ |
| 341 | 341 | public function addRuleMessages(array $messages): ValidatorInterface |
| 342 | 342 | { |
| 343 | - array_walk($messages, function (string $message, string $rule) { |
|
| 343 | + array_walk($messages, function(string $message, string $rule) { |
|
| 344 | 344 | $this->addRuleMessage($rule, $message); |
| 345 | 345 | }); |
| 346 | 346 | return $this; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | /** |
| 47 | 47 | * {@inheritdoc} |
| 48 | 48 | */ |
| 49 | - public function get(string $key): ?array |
|
| 49 | + public function get(string $key): ? array |
|
| 50 | 50 | { |
| 51 | 51 | if (array_key_exists($key, $this->messages)) { |
| 52 | 52 | return !empty($this->messages[$key]) ? $this->messages[$key] : null; |