| @@ 462-476 (lines=15) @@ | ||
| 459 | continue; |
|
| 460 | } |
|
| 461 | ||
| 462 | if ($args === null) { |
|
| 463 | if (! call_user_func($callback, $this[$f])) { |
|
| 464 | $this->errors[$f] = $rule; |
|
| 465 | ||
| 466 | // Stop validating this field when an error is found |
|
| 467 | continue; |
|
| 468 | } |
|
| 469 | } else { |
|
| 470 | if (! call_user_func($callback, $this[$f], $args)) { |
|
| 471 | $this->errors[$f] = $rule; |
|
| 472 | ||
| 473 | // Stop validating this field when an error is found |
|
| 474 | continue; |
|
| 475 | } |
|
| 476 | } |
|
| 477 | } |
|
| 478 | } else { |
|
| 479 | if (isset($this->errors[$field])) { |
|
| @@ 489-503 (lines=15) @@ | ||
| 486 | continue; |
|
| 487 | } |
|
| 488 | ||
| 489 | if ($args === null) { |
|
| 490 | if (! call_user_func($callback, $this[$field])) { |
|
| 491 | $this->errors[$field] = $rule; |
|
| 492 | ||
| 493 | // Stop validating this field when an error is found |
|
| 494 | break; |
|
| 495 | } |
|
| 496 | } else { |
|
| 497 | if (! call_user_func($callback, $this[$field], $args)) { |
|
| 498 | $this->errors[$field] = $rule; |
|
| 499 | ||
| 500 | // Stop validating this field when an error is found |
|
| 501 | break; |
|
| 502 | } |
|
| 503 | } |
|
| 504 | } |
|
| 505 | } |
|
| 506 | } |
|