Skip to content

Commit

Permalink
Removed redundant variable in Validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Ennio Wolsink authored Mar 29, 2017
1 parent 602ed30 commit 359e14c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Validator/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function validate($entity)
$errors = $validator->validate($entity);
if ($errors->count() > 0) {
$messages = array();
$i = 0; foreach ($errors as $key => $error) {
foreach ($errors as $key => $error) {
$messages[$error->getPropertyPath()] = $error->getMessage();
}

Expand All @@ -30,4 +30,4 @@ public function validate($entity)

return true;
}
}
}

0 comments on commit 359e14c

Please sign in to comment.