Passed
Branch master (325a40)
by Alexander
03:06
created
Category
src/Interfaces/MessageBagInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Validator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/MessageBag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.