diff --git a/src/Validation/FiValidation.php b/src/Validation/FiValidation.php index 1784230..9d252f2 100644 --- a/src/Validation/FiValidation.php +++ b/src/Validation/FiValidation.php @@ -85,7 +85,6 @@ public static function personId(string $check): bool } $list = array_values($list); - /** @phpstan-ignore-next-line */ return $check[strlen($check) - 1] === $list[(int)(substr($check, 0, 6) . substr($check, 7, 3)) % 31]; } diff --git a/src/Validation/IrValidation.php b/src/Validation/IrValidation.php index dde8f01..a6afefb 100644 --- a/src/Validation/IrValidation.php +++ b/src/Validation/IrValidation.php @@ -50,7 +50,7 @@ public static function alphaNumeric(string $check): bool */ public static function numeric(string $check): bool { - $pattern = '/[^\x{06F0}-\x{06F9}\x]+/u'; + $pattern = '/[^\x{06F0}-\x{06F9}]+/u'; return !preg_match($pattern, $check); } diff --git a/src/Validation/RsValidation.php b/src/Validation/RsValidation.php index 19cdd0e..07e1ad2 100644 --- a/src/Validation/RsValidation.php +++ b/src/Validation/RsValidation.php @@ -78,7 +78,7 @@ public static function addressCode(string $check): bool return (bool)preg_match($pattern, $check); } - // @codingStandardsIgnoreStart + // phpcs:disable PSR1.Methods.CamelCapsMethodName /** * Checks an address code (Adresni kod) for Serbia. @@ -104,7 +104,7 @@ public static function postal_number(string $check): bool return static::postal($check); } - // @codingStandardsIgnoreEnd + // phpcs:enable PSR1.Methods.CamelCapsMethodName /** * Checks Unique Master Citizen Numbers (JMBG) for Serbia.