/var/www/cobraambalaj/vendor/fakerphp/faker/src/Faker/Calculator
NameSizeModeActions
Ean.php11260644editdlrm
Iban.php17100644editdlrm
Inn.php9710644editdlrm
Isbn.php15760644editdlrm
Luhn.php17700644editdlrm
TCNo.php13730644editdlrm
Edit: /var/www/cobraambalaj/vendor/fakerphp/faker/src/Faker/Calculator/Ean.php (1126B)
$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); } }