Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Validation/FiValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Validation/IrValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Validation/RsValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
Loading