/var/www/flurhymez/vendor/fakerphp/faker/src/Faker/Calculator
NameSizeModeActions
Ean.php11520644editdlrm
Iban.php17400644editdlrm
Inn.php12570644editdlrm
Isbn.php15410644editdlrm
Luhn.php17650644editdlrm
TCNo.php11520644editdlrm
Edit: /var/www/flurhymez/vendor/fakerphp/faker/src/Faker/Calculator/Ean.php (1152B)
$digit) { $sums += ((int) $digit) * $sequence[$n % 2]; } return (10 - $sums % 10) % 10; } /** * Checks whether the provided number is an EAN compliant number and that * the checksum is correct. * * @param string $ean An EAN number * * @return bool */ public static function isValid($ean) { if (!preg_match(self::PATTERN, $ean)) { return false; } return self::checksum(substr($ean, 0, -1)) === (int) substr($ean, -1); } }