Skip to content

Commit

Permalink
Refator: rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 5, 2015
1 parent d1f5a90 commit 2ef7060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ValueValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function validate($value, $valueIdentifier = null, WrapperInterface $cont
/* @var $rule \Sirius\Validation\Rule\AbstractValidator */
foreach ($this->rules as $rule) {
$rule->setContext($context);
$this->validateRule($rule, $value, $valueIdentifier);
$this->runValidation($rule, $value, $valueIdentifier);

// if field is required and we have an error,
// do not continue with the rest of rules
Expand All @@ -124,7 +124,7 @@ protected function isRequired()
return $isRequired;
}

protected function validateRule($rule, $value, $valueIdentifier)
protected function runValidation($rule, $value, $valueIdentifier)
{
if (!$rule->validate($value, $valueIdentifier)) {
// if fatal rule fails
Expand Down

0 comments on commit 2ef7060

Please sign in to comment.