Skip to content

Commit

Permalink
fixed up some static analysis flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
philiplb committed Jul 17, 2016
1 parent f8cd2e4 commit 559f6fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Valdi/Validator/OrCombine.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class OrCombine implements ValidatorInterface {
/**
* Holds the invalid validators.
*/
protected $invalid;
protected $invalidDetails;

/**
* Checks whether the given parameters fullfil:
Expand All @@ -48,9 +48,9 @@ public function isValid($value, array $parameters) {

$this->checkParameters($parameters);

$validator = array_shift($parameters);
$validator = array_shift($parameters);
$this->invalidDetails = array();
$valid = false;
$valid = false;
foreach ($parameters as $rules) {
$failedValidations = $validator->isValidValue(array($rules), $value);
foreach ($failedValidations as $failedValidation) {
Expand Down

0 comments on commit 559f6fa

Please sign in to comment.