diff --git a/spec/loophp/Tin/CountryHandler/CzeckRepublicSpec.php b/spec/loophp/Tin/CountryHandler/CzechRepublicSpec.php similarity index 91% rename from spec/loophp/Tin/CountryHandler/CzeckRepublicSpec.php rename to spec/loophp/Tin/CountryHandler/CzechRepublicSpec.php index f5ef663..cd5d93a 100644 --- a/spec/loophp/Tin/CountryHandler/CzeckRepublicSpec.php +++ b/spec/loophp/Tin/CountryHandler/CzechRepublicSpec.php @@ -6,7 +6,7 @@ use tests\loophp\Tin\AbstractAlgorithmSpec; -class CzeckRepublicSpec extends AbstractAlgorithmSpec +class CzechRepublicSpec extends AbstractAlgorithmSpec { public const INVALID_NUMBER_DATE = ['901549/0006', '902149/0003']; diff --git a/src/CountryHandler/CzeckRepublic.php b/src/CountryHandler/CzechRepublic.php similarity index 97% rename from src/CountryHandler/CzeckRepublic.php rename to src/CountryHandler/CzechRepublic.php index a152a34..c52ca9a 100644 --- a/src/CountryHandler/CzeckRepublic.php +++ b/src/CountryHandler/CzechRepublic.php @@ -12,12 +12,12 @@ * * Source: https://github.com/czechphp/national-identification-number-validator */ -final class CzeckRepublic extends CountryHandler +final class CzechRepublic extends CountryHandler { /** * @var string */ - public const COUNTRYCODE = 'CY'; + public const COUNTRYCODE = 'CZ'; /** * @var int diff --git a/src/TIN.php b/src/TIN.php index 1c3f963..5c465b7 100644 --- a/src/TIN.php +++ b/src/TIN.php @@ -10,7 +10,7 @@ use loophp\Tin\CountryHandler\CountryHandlerInterface; use loophp\Tin\CountryHandler\Croatia; use loophp\Tin\CountryHandler\Cyprus; -use loophp\Tin\CountryHandler\CzeckRepublic; +use loophp\Tin\CountryHandler\CzechRepublic; use loophp\Tin\CountryHandler\Denmark; use loophp\Tin\CountryHandler\Estonia; use loophp\Tin\CountryHandler\Finland; @@ -48,7 +48,7 @@ final class TIN 'BE' => Belgium::class, 'BG' => Bulgaria::class, 'CY' => Cyprus::class, - 'CZ' => CzeckRepublic::class, + 'CZ' => CzechRepublic::class, 'DE' => Germany::class, 'DK' => Denmark::class, 'EE' => Estonia::class,