Skip to content

Commit eae985a

Browse files
committed
formatting
1 parent 42d1ab2 commit eae985a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Illuminate/Validation/Rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function notIn($values)
8787
* @param callable $callback
8888
* @return \Illuminate\Validation\NestedRules
8989
*/
90-
public static function nested($callback)
90+
public static function forEach($callback)
9191
{
9292
return new NestedRules($callback);
9393
}

src/Illuminate/Validation/ValidationRuleParser.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,10 @@ protected function explodeExplicitRule($rule, $attribute)
9090
return Arr::wrap($this->prepareRule($rule, $attribute));
9191
}
9292

93-
$attributes = array_fill(
94-
array_key_first($rule), count($rule), $attribute
95-
);
96-
9793
return array_map(
98-
[$this, 'prepareRule'], $rule, $attributes
94+
[$this, 'prepareRule'],
95+
$rule,
96+
array_fill(array_key_first($rule), count($rule), $attribute)
9997
);
10098
}
10199

0 commit comments

Comments
 (0)