private function IbanValidator::bigModulo97 in Plug 7
1 call to IbanValidator::bigModulo97()
- IbanValidator::validate in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ IbanValidator.php - Checks if the passed value is valid.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Constraints/ IbanValidator.php, line 132
Class
- IbanValidator
- @author Manuel Reinhard <manu@sprain.ch> @author Michael Schummel @author Bernhard Schussek <bschussek@gmail.com>
Namespace
Symfony\Component\Validator\ConstraintsCode
private function bigModulo97($bigInt) {
$parts = str_split($bigInt, 7);
$rest = 0;
foreach ($parts as $part) {
$rest = ($rest . $part) % 97;
}
return $rest;
}