Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 17, 2017
1 parent 18d8ccc commit b219058
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Illuminate/Validation/Concerns/ReplacesAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,10 @@ protected function replaceAfterOrEqual($message, $attribute, $rule, $parameters)
*/
protected function replaceDimensions($message, $attribute, $rule, $parameters)
{
$nesteds = $this->parseNamedParameters($parameters);
if (is_array($nesteds)) {
foreach ($nesteds as $key => $value) {
$parameters = $this->parseNamedParameters($parameters);

if (is_array($parameters)) {
foreach ($parameters as $key => $value) {
$message = str_replace(':'.$key, $value, $message);
}
}
Expand Down

0 comments on commit b219058

Please sign in to comment.