Passed
Branch master (12f40f)
by Jan
03:37
created
Category
src/Rules/Core/EachPassed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     private function getPassedRules($input)
50 50
     {
51
-        return array_filter($this->rules, function (RuleInterface $rule) use ($input) {
51
+        return array_filter($this->rules, function(RuleInterface $rule) use ($input) {
52 52
             return $rule->isValid($input) === true;
53 53
         });
54 54
     }
Please login to merge, or discard this patch.
src/Validator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function extend(array $rules)
112 112
     {
113
-        $keys = array_map(function ($key) use ($rules) {
113
+        $keys = array_map(function($key) use ($rules) {
114 114
             if (is_int($key)) {
115 115
                 return static::getRuleInstance($rules[$key])->getName();
116 116
             }
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     private function formatRules(array $all)
219 219
     {
220 220
         $attributes = array_keys($all);
221
-        $rules = array_map(function ($attribute) use ($all) {
221
+        $rules = array_map(function($attribute) use ($all) {
222 222
             $resolved = $this->resolveRules($all[$attribute]);
223 223
 
224 224
             if (!is_array($resolved)) {
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 
296 296
         if ($delimpos) {
297 297
             $name = substr($rule, 0, $delimpos);
298
-            $arguments = (array) explode(',', substr($rule, $delimpos+1));
298
+            $arguments = (array) explode(',', substr($rule, $delimpos + 1));
299 299
         } else {
300 300
             $name = $rule;
301 301
             $arguments = [];
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
     private function getMessagesByAttributeAndRuleName($attribute, $ruleName)
589 589
     {
590 590
         $prefix = $attribute . '.' . $ruleName;
591
-        $messages = array_filter($this->messages, function ($key) use ($attribute, $prefix) {
591
+        $messages = array_filter($this->messages, function($key) use ($attribute, $prefix) {
592 592
             return $key === $attribute || strpos($key, $prefix) === 0;
593 593
         }, ARRAY_FILTER_USE_KEY);
594 594
 
Please login to merge, or discard this patch.