mirror of
https://github.com/Respect/Validation.git
synced 2024-06-18 13:35:06 +02:00
Set up "squizlabs/php_codesniffer"
The tool we used to verify whether the code base has the correct coding
standard was removed [1].
This commit will set up one that works best for us and will also make
sure we have fully compliant to PS1 and PSR2.
[1]: ffec95acda
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
2b86e5443e
commit
b7043b2652
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,7 +1,8 @@
|
|||
.php_cs.cache
|
||||
.couscous/
|
||||
.phpcs.cache
|
||||
composer.lock
|
||||
Makefile
|
||||
phpcs.xml
|
||||
phpstan.neon
|
||||
phpunit.xml
|
||||
vendor/
|
||||
|
|
|
@ -34,6 +34,10 @@ script:
|
|||
if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then
|
||||
vendor/bin/docheader check library tests
|
||||
fi
|
||||
- |
|
||||
if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then
|
||||
vendor/bin/phpcs
|
||||
fi
|
||||
- |
|
||||
if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then
|
||||
vendor/bin/phpstan analyze
|
||||
|
|
|
@ -11,6 +11,9 @@
|
|||
"homepage": "https://github.com/Respect/Validation/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"config": {
|
||||
"sort-packages": true
|
||||
},
|
||||
"require": {
|
||||
"php": ">=7.1",
|
||||
"respect/stringifier": "^0.2.0",
|
||||
|
@ -22,6 +25,7 @@
|
|||
"mikey179/vfsStream": "^1.6",
|
||||
"phpstan/phpstan": "^0.10.3",
|
||||
"phpunit/phpunit": "^7.3",
|
||||
"squizlabs/php_codesniffer": "^3.4",
|
||||
"symfony/validator": "^3.0||^4.0",
|
||||
"zendframework/zend-validator": "^2.0"
|
||||
},
|
||||
|
@ -51,12 +55,14 @@
|
|||
},
|
||||
"scripts": {
|
||||
"docheader": "vendor/bin/docheader check library/ tests/",
|
||||
"phpcs": "vendor/bin/phpcs",
|
||||
"phpstan": "vendor/bin/phpstan analyze",
|
||||
"phpunit": "vendor/bin/phpunit",
|
||||
"phpunit-integration": "vendor/bin/phpunit --testsuite=integration",
|
||||
"phpunit-unit": "vendor/bin/phpunit --testsuite=unit",
|
||||
"qa": [
|
||||
"@docheader",
|
||||
"@phpcs",
|
||||
"@phpstan",
|
||||
"@phpunit"
|
||||
]
|
||||
|
|
|
@ -78,8 +78,14 @@ final class Factory
|
|||
array $exceptionsNamespaces,
|
||||
callable $translator
|
||||
) {
|
||||
$this->rulesNamespaces = $this->filterNamespaces($rulesNamespaces, self::DEFAULT_RULES_NAMESPACES);
|
||||
$this->exceptionsNamespaces = $this->filterNamespaces($exceptionsNamespaces, self::DEFAULT_EXCEPTIONS_NAMESPACES);
|
||||
$this->rulesNamespaces = $this->filterNamespaces(
|
||||
$rulesNamespaces,
|
||||
self::DEFAULT_RULES_NAMESPACES
|
||||
);
|
||||
$this->exceptionsNamespaces = $this->filterNamespaces(
|
||||
$exceptionsNamespaces,
|
||||
self::DEFAULT_EXCEPTIONS_NAMESPACES
|
||||
);
|
||||
$this->translator = $translator;
|
||||
}
|
||||
|
||||
|
@ -233,8 +239,12 @@ final class Factory
|
|||
*
|
||||
* @return ValidationException
|
||||
*/
|
||||
private function createValidationException(string $exceptionName, string $id, $input, array $params): ValidationException
|
||||
{
|
||||
private function createValidationException(
|
||||
string $exceptionName,
|
||||
string $id,
|
||||
$input,
|
||||
array $params
|
||||
): ValidationException {
|
||||
/* @var ValidationException $exception */
|
||||
$exception = $this->createReflectionClass($exceptionName, ValidationException::class)
|
||||
->newInstance($input, $id, $params, $this->translator);
|
||||
|
|
|
@ -17,7 +17,9 @@ use ArrayAccess;
|
|||
use SimpleXMLElement;
|
||||
|
||||
/**
|
||||
* Validates if the input is an array or if the input can be used as an array (instance of `ArrayAccess` or `SimpleXMLElement`).
|
||||
* Validates if the input is an array or if the input can be used as an array.
|
||||
*
|
||||
* Instance of `ArrayAccess` or `SimpleXMLElement` are also considered as valid.
|
||||
*
|
||||
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
|
||||
* @author Emmerson Siqueira <emmersonsiqueira@gmail.com>
|
||||
|
|
|
@ -50,13 +50,19 @@ final class Cnpj extends AbstractRule
|
|||
return false;
|
||||
}
|
||||
|
||||
for ($i = 0, $n = 0; $i < 12; $n += $cleanInput[$i] * $b[++$i]);
|
||||
$n = 0;
|
||||
for ($i = 0; $i < 12; ++$i) {
|
||||
$n += $cleanInput[$i] * $b[$i+1];
|
||||
}
|
||||
|
||||
if ($cleanInput[12] != ((($n %= 11) < 2) ? 0 : 11 - $n)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for ($i = 0, $n = 0; $i <= 12; $n += $cleanInput[$i] * $b[$i++]);
|
||||
$n = 0;
|
||||
for ($i = 0; $i <= 12; ++$i) {
|
||||
$n += $cleanInput[$i] * $b[$i];
|
||||
}
|
||||
|
||||
if ($cleanInput[13] != ((($n %= 11) < 2) ? 0 : 11 - $n)) {
|
||||
return false;
|
||||
|
|
|
@ -41,13 +41,19 @@ final class Cpf extends AbstractRule
|
|||
return false;
|
||||
}
|
||||
|
||||
for ($s = 10, $n = 0, $i = 0; $s >= 2; $n += $c[$i++] * $s--);
|
||||
$n = 0;
|
||||
for ($s = 10, $i = 0; $s >= 2; ++$i, --$s) {
|
||||
$n += $c[$i] * $s;
|
||||
}
|
||||
|
||||
if ($c[9] != ((($n %= 11) < 2) ? 0 : 11 - $n)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for ($s = 11, $n = 0, $i = 0; $s >= 2; $n += $c[$i++] * $s--);
|
||||
$n = 0;
|
||||
for ($s = 11, $i = 0; $s >= 2; ++$i, --$s) {
|
||||
$n += $c[$i] * $s;
|
||||
}
|
||||
|
||||
if ($c[10] != ((($n %= 11) < 2) ? 0 : 11 - $n)) {
|
||||
return false;
|
||||
|
|
|
@ -39,6 +39,6 @@ final class AdSubdivisionCode extends AbstractSearcher
|
|||
'06', // Sant Julia de Lòria
|
||||
'07', // Andorra la Vella
|
||||
'08', // Escaldes-Engordany
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,6 +39,6 @@ final class AeSubdivisionCode extends AbstractSearcher
|
|||
'RK', // R'as al Khaymah
|
||||
'SH', // Ash Shariqah
|
||||
'UQ', // Umm al Qaywayn
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,6 +66,6 @@ final class AfSubdivisionCode extends AbstractSearcher
|
|||
'URU', // Uruzgān province
|
||||
'WAR', // Wardak province
|
||||
'ZAB', // Zabol province
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,6 +40,6 @@ final class AgSubdivisionCode extends AbstractSearcher
|
|||
'08', // Saint Philip
|
||||
'10', // Barbuda
|
||||
'11', // Redonda
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,6 +80,6 @@ final class AlSubdivisionCode extends AbstractSearcher
|
|||
'TP', // Tropoje
|
||||
'TR', // Tirane
|
||||
'VL', // Vlore
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,6 @@ final class AmSubdivisionCode extends AbstractSearcher
|
|||
'SU', // Syunik'
|
||||
'TV', // Tavush
|
||||
'VD', // Vayots' Dzor
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,6 +50,6 @@ final class AoSubdivisionCode extends AbstractSearcher
|
|||
'NAM', // Namibe
|
||||
'UIG', // Uige
|
||||
'ZAI', // Zaire
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,6 +56,6 @@ final class ArSubdivisionCode extends AbstractSearcher
|
|||
'X', // Cordoba
|
||||
'Y', // Jujuy
|
||||
'Z', // Santa Cruz
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,6 @@ final class AsSubdivisionCode extends AbstractSearcher
|
|||
'R', // Rose Island
|
||||
'S', // Swains Island
|
||||
'W', // Western
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,6 +41,6 @@ final class AtSubdivisionCode extends AbstractSearcher
|
|||
'7', // Tirol
|
||||
'8', // Vorarlberg
|
||||
'9', // Wien
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,6 +40,6 @@ final class AuSubdivisionCode extends AbstractSearcher
|
|||
'TAS', // Tasmania
|
||||
'VIC', // Victoria
|
||||
'WA', // Western Australia
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -110,6 +110,6 @@ final class AzSubdivisionCode extends AbstractSearcher
|
|||
'ZAN', // Zangilan
|
||||
'ZAQ', // Zaqatala
|
||||
'ZAR', // Zardab
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,6 +45,6 @@ final class BaSubdivisionCode extends AbstractSearcher
|
|||
'BIH', // Federacija Bosna i Hercegovina
|
||||
'BRC', // Brcko District
|
||||
'SRP', // Republika Srpska
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,6 @@ final class BbSubdivisionCode extends AbstractSearcher
|
|||
'09', // Saint Peter
|
||||
'10', // Saint Philip
|
||||
'11', // Saint Thomas
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,6 +104,6 @@ final class BdSubdivisionCode extends AbstractSearcher
|
|||
'F', // Rangpur
|
||||
'G', // Sylhet
|
||||
'H', // Mymensingh Division
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,6 +45,6 @@ final class BeSubdivisionCode extends AbstractSearcher
|
|||
'WLG', // Liege
|
||||
'WLX', // Luxembourg
|
||||
'WNA', // Namur
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,6 +90,6 @@ final class BfSubdivisionCode extends AbstractSearcher
|
|||
'ZIR', // Ziro
|
||||
'ZON', // Zondoma
|
||||
'ZOU', // Zoundweogo
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,6 +60,6 @@ final class BgSubdivisionCode extends AbstractSearcher
|
|||
'26', // Khaskovo
|
||||
'27', // Shumen
|
||||
'28', // Yambol
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,6 @@ final class BhSubdivisionCode extends AbstractSearcher
|
|||
'14', // Southern
|
||||
'15', // Muharraq
|
||||
'17', // Northern
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,6 +50,6 @@ final class BiSubdivisionCode extends AbstractSearcher
|
|||
'RM', // Rumonge
|
||||
'RT', // Rutana
|
||||
'RY', // Ruyigi
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,6 @@ final class BjSubdivisionCode extends AbstractSearcher
|
|||
'OU', // Oueme
|
||||
'PL', // Plateau
|
||||
'ZO', // Zou
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,6 @@ final class BmSubdivisionCode extends AbstractSearcher
|
|||
'SH', // Southampton
|
||||
'SM', // Smith's
|
||||
'WA', // Warwick
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,6 @@ final class BnSubdivisionCode extends AbstractSearcher
|
|||
'BM', // Brunei and Muara
|
||||
'TE', // Temburong
|
||||
'TU', // Tutong
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,6 +41,6 @@ final class BoSubdivisionCode extends AbstractSearcher
|
|||
'P', // Departmento Potosi
|
||||
'S', // Departmento Santa Cruz
|
||||
'T', // Departmento Tarija
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,6 +35,6 @@ final class BqSubdivisionCode extends AbstractSearcher
|
|||
'BO', // Bonaire
|
||||
'SA', // Saba
|
||||
'SE', // Sint Eustatius
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,6 +59,6 @@ final class BrSubdivisionCode extends AbstractSearcher
|
|||
'SE', // Sergipe
|
||||
'SP', // Sao Paulo
|
||||
'TO', // Tocantins
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,6 +64,6 @@ final class BsSubdivisionCode extends AbstractSearcher
|
|||
'SS', // San Salvador
|
||||
'SW', // Spanish Wells
|
||||
'WG', // West Grand Bahama
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,6 @@ final class BtSubdivisionCode extends AbstractSearcher
|
|||
'45', // Samdrup Jongkhar
|
||||
'GA', // Gasa
|
||||
'TY', // Trashi Yangste
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,6 +48,6 @@ final class BwSubdivisionCode extends AbstractSearcher
|
|||
'SO', // Southern
|
||||
'SP', // Selibe Phikwe
|
||||
'ST', // Sowa Town
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,6 +39,6 @@ final class BySubdivisionCode extends AbstractSearcher
|
|||
'MA', // Mahilyow voblast
|
||||
'MI', // Minsk voblast
|
||||
'VI', // Vitsebsk voblast
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,6 @@ final class BzSubdivisionCode extends AbstractSearcher
|
|||
'OW', // Orange Walk District
|
||||
'SC', // Stann Creek District
|
||||
'TOL', // Toledo District
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,6 +45,6 @@ final class CaSubdivisionCode extends AbstractSearcher
|
|||
'QC', // Quebec
|
||||
'SK', // Saskatchewan
|
||||
'YT', // Yukon Territory
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,6 @@ final class CcSubdivisionCode extends AbstractSearcher
|
|||
'O', // Horsburgh Island
|
||||
'S', // South Island
|
||||
'W', // West Island
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,6 +58,6 @@ final class CdSubdivisionCode extends AbstractSearcher
|
|||
'TA', // Tanganyika
|
||||
'TO', // Tshopo
|
||||
'TU', // Tshuapa
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,6 +49,6 @@ final class CfSubdivisionCode extends AbstractSearcher
|
|||
'SE', // Sangha-Mbaere
|
||||
'UK', // Ouaka
|
||||
'VK', // Vakaga
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,6 @@ final class CgSubdivisionCode extends AbstractSearcher
|
|||
'8', // Cuvette
|
||||
'9', // Niari
|
||||
'BZV', // Brazzaville
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,6 +58,6 @@ final class ChSubdivisionCode extends AbstractSearcher
|
|||
'VS', // Valais
|
||||
'ZG', // Zug
|
||||
'ZH', // Zurich
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,6 +46,6 @@ final class CiSubdivisionCode extends AbstractSearcher
|
|||
'WR', // Woroba
|
||||
'YM', // Yamoussoukro Autonomous District
|
||||
'ZZ', // Zanzan
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,6 +47,6 @@ final class CkSubdivisionCode extends AbstractSearcher
|
|||
'RR', // Rarotonga
|
||||
'SU', // Surwarrow
|
||||
'TA', // Takutea
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,6 +47,6 @@ final class ClSubdivisionCode extends AbstractSearcher
|
|||
'RM', // Region Metropolitana (RM)
|
||||
'TA', // Tarapaca (I)
|
||||
'VS', // Valparaiso (V)
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,6 @@ final class CmSubdivisionCode extends AbstractSearcher
|
|||
'OU', // West Province (Ouest)
|
||||
'SU', // South Province (Sud)
|
||||
'SW', // Southwest Province (Sud-Ouest).
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,6 +66,6 @@ final class CnSubdivisionCode extends AbstractSearcher
|
|||
'XZ', // Xizang Zìzhìqu (Tibet)
|
||||
'YN', // Yunnan
|
||||
'ZJ', // Zhejiang
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,6 +65,6 @@ final class CoSubdivisionCode extends AbstractSearcher
|
|||
'VAC', // Valle del Cauca
|
||||
'VAU', // Vaupes
|
||||
'VID', // Vichada
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,6 +39,6 @@ final class CrSubdivisionCode extends AbstractSearcher
|
|||
'L', // Limon
|
||||
'P', // Puntarenas
|
||||
'SJ', // San Jose
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,6 @@ final class CsSubdivisionCode extends AbstractSearcher
|
|||
'MON', // Montenegro
|
||||
'SER', // Serbia
|
||||
'VOJ', // Vojvodina
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,6 +48,6 @@ final class CuSubdivisionCode extends AbstractSearcher
|
|||
'15', // Artemisa
|
||||
'16', // Mayabeque
|
||||
'99', // Isla de la Juventud
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,6 +56,6 @@ final class CvSubdivisionCode extends AbstractSearcher
|
|||
'SV', // Sao Vicente
|
||||
'TA', // Tarrafal
|
||||
'TS', // Tarrafal de São Nicolau
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,6 @@ final class CySubdivisionCode extends AbstractSearcher
|
|||
'04', // Ammóchostos
|
||||
'05', // Páfos
|
||||
'06', // Kerýneia
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -144,6 +144,6 @@ final class CzSubdivisionCode extends AbstractSearcher
|
|||
'804', // Nový Jičín
|
||||
'805', // Opava
|
||||
'806', // Ostrava - město
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,6 +48,6 @@ final class DeSubdivisionCode extends AbstractSearcher
|
|||
'SN', // Sachsen
|
||||
'ST', // Sachsen-Anhalt
|
||||
'TH', // Thüringen
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,6 @@ final class DjSubdivisionCode extends AbstractSearcher
|
|||
'DJ', // Djibouti
|
||||
'OB', // Obock
|
||||
'TA', // Tadjoura
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,6 @@ final class DkSubdivisionCode extends AbstractSearcher
|
|||
'83', // Region Syddanmark
|
||||
'84', // Region Hovedstaden
|
||||
'85', // Region Sjæland
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,6 @@ final class DmSubdivisionCode extends AbstractSearcher
|
|||
'09', // Saint Patrick Parish
|
||||
'10', // Saint Paul Parish
|
||||
'11', // Saint Peter Parish
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,6 +64,6 @@ final class DoSubdivisionCode extends AbstractSearcher
|
|||
'30', // Hato Mayor
|
||||
'31', // San Jose de Ocoa
|
||||
'32', // Santo Domingo
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,6 +80,6 @@ final class DzSubdivisionCode extends AbstractSearcher
|
|||
'46', // Ain Temouchent
|
||||
'47', // Ghardaia
|
||||
'48', // Relizane
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,6 +56,6 @@ final class EcSubdivisionCode extends AbstractSearcher
|
|||
'X', // Cotopaxi
|
||||
'Y', // Pastaza
|
||||
'Z', // Zamora-Chinchipe
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,6 +47,6 @@ final class EeSubdivisionCode extends AbstractSearcher
|
|||
'82', // Valga County
|
||||
'84', // Viljandi County
|
||||
'86', // Võru County
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,6 +59,6 @@ final class EgSubdivisionCode extends AbstractSearcher
|
|||
'SIN', // Shamal Sina'
|
||||
'SUZ', // As Suways
|
||||
'WAD', // Al Wadi al Jadid
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,6 @@ final class ErSubdivisionCode extends AbstractSearcher
|
|||
'GB', // Gash-Barka (Barentu)
|
||||
'MA', // Central (Maekel)
|
||||
'SK', // Northern Red Sea (Semien-Keih-Bahri)
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,6 +101,6 @@ final class EsSubdivisionCode extends AbstractSearcher
|
|||
'VI', // Álava
|
||||
'Z', // Zaragoza
|
||||
'ZA', // Zamora
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,6 @@ final class EtSubdivisionCode extends AbstractSearcher
|
|||
'SN', // Southern Nations - Nationalities and Peoples Region
|
||||
'SO', // Somali
|
||||
'TI', // Tigray
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,6 +51,6 @@ final class FiSubdivisionCode extends AbstractSearcher
|
|||
'17', // Satakunta [Finnish and Swedish]
|
||||
'18', // Uusimaa [Finnish] / Nyland [Swedish]
|
||||
'19', // Varsinais-Suomi [Finnish] / Egentliga Finland [Swedish]
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,6 +51,6 @@ final class FjSubdivisionCode extends AbstractSearcher
|
|||
'N', // Northern Division
|
||||
'R', // Rotuma
|
||||
'W', // Western Division
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,6 @@ final class FmSubdivisionCode extends AbstractSearcher
|
|||
'PNI', // Pohnpei
|
||||
'TRK', // Chuuk
|
||||
'YAP', // Yap
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,6 +157,6 @@ final class FrSubdivisionCode extends AbstractSearcher
|
|||
'TF', // Terres Australes Françaises (see also separate ISO 3166-1 entry under TF)
|
||||
'WF', // Wallis et Futuna (see also separate ISO 3166-1 entry under WF)
|
||||
'YT', // Mayotte (see also separate ISO 3166-1 entry under YT)
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,6 +41,6 @@ final class GaSubdivisionCode extends AbstractSearcher
|
|||
'7', // Ogooue-Lolo
|
||||
'8', // Ogooue-Maritime
|
||||
'9', // Woleu-Ntem
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -253,6 +253,6 @@ final class GbSubdivisionCode extends AbstractSearcher
|
|||
'WSX', // West Sussex
|
||||
'YOR', // York
|
||||
'ZET', // Shetland Islands
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,6 +39,6 @@ final class GdSubdivisionCode extends AbstractSearcher
|
|||
'05', // Saint Mark
|
||||
'06', // Saint Patrick
|
||||
'10', // Southern Grenadine Islands
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,6 @@ final class GeSubdivisionCode extends AbstractSearcher
|
|||
'SK', // Shida Kartli
|
||||
'SZ', // Samegrelo-Zemo Svaneti
|
||||
'TB', // Tbilisi
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,6 @@ final class GhSubdivisionCode extends AbstractSearcher
|
|||
'UE', // Upper East Region
|
||||
'UW', // Upper West Region
|
||||
'WP', // Western Region
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,6 @@ final class GlSubdivisionCode extends AbstractSearcher
|
|||
'QA', // Qaasuitsup
|
||||
'QE', // Qeqqata
|
||||
'SM', // Sermersooq
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,6 @@ final class GmSubdivisionCode extends AbstractSearcher
|
|||
'N', // North Bank
|
||||
'U', // Upper River
|
||||
'W', // Western
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,6 +73,6 @@ final class GnSubdivisionCode extends AbstractSearcher
|
|||
'TE', // Telimele
|
||||
'TO', // Tougue
|
||||
'YO', // Yomou
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,6 +41,6 @@ final class GqSubdivisionCode extends AbstractSearcher
|
|||
'KN', // Provincia Kie-Ntem
|
||||
'LI', // Provincia Litoral
|
||||
'WN', // Provincia Wele-Nzas
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,6 +97,6 @@ final class GrSubdivisionCode extends AbstractSearcher
|
|||
'K', // Voreio Aigaio
|
||||
'L', // Notio Aigaio
|
||||
'M', // Kriti
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,6 +54,6 @@ final class GtSubdivisionCode extends AbstractSearcher
|
|||
'SU', // Suchitepequez
|
||||
'TO', // Totonicapan
|
||||
'ZA', // Zacapa
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,6 @@ final class GwSubdivisionCode extends AbstractSearcher
|
|||
'QU', // Quinara Region
|
||||
'S', // Sul
|
||||
'TO', // Tombali Region
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,6 @@ final class GySubdivisionCode extends AbstractSearcher
|
|||
'PT', // Potaro-Siparuni
|
||||
'UD', // Upper Demerara-Berbice
|
||||
'UT', // Upper Takutu-Upper Essequibo
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,6 +50,6 @@ final class HkSubdivisionCode extends AbstractSearcher
|
|||
'NTP', // Tai Po New Territories
|
||||
'NTW', // Tsuen Wan New Territories
|
||||
'NYL', // Yuen Long New Territories
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,6 @@ final class HmSubdivisionCode extends AbstractSearcher
|
|||
'H', // Heard Island
|
||||
'M', // McDonald Island
|
||||
'S', // Shag Island
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,6 +50,6 @@ final class HnSubdivisionCode extends AbstractSearcher
|
|||
'SB', // Santa Barbara
|
||||
'VA', // Valle
|
||||
'YO', // Yoro
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,6 +53,6 @@ final class HrSubdivisionCode extends AbstractSearcher
|
|||
'19', // Dubrovnik-Neretva county
|
||||
'20', // Medjimurje county
|
||||
'21', // Zagreb (city)
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,6 @@ final class HtSubdivisionCode extends AbstractSearcher
|
|||
'OU', // Ouest
|
||||
'SD', // Sud
|
||||
'SE', // Sud-Est
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,6 +75,6 @@ final class HuSubdivisionCode extends AbstractSearcher
|
|||
'VM', // Veszprém
|
||||
'ZA', // Zala megye
|
||||
'ZE', // Zalaegerszeg
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,6 +73,6 @@ final class IdSubdivisionCode extends AbstractSearcher
|
|||
'ST', // Sulawesi Tengah
|
||||
'SU', // Sumatera Utara
|
||||
'YO', // Yogyakarta
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,6 +61,6 @@ final class IeSubdivisionCode extends AbstractSearcher
|
|||
'WH', // Westmeath
|
||||
'WW', // Wicklow
|
||||
'WX', // Wexford
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,6 +38,6 @@ final class IlSubdivisionCode extends AbstractSearcher
|
|||
'M', // Central
|
||||
'TA', // Tel Aviv
|
||||
'Z', // Northern
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,6 +68,6 @@ final class InSubdivisionCode extends AbstractSearcher
|
|||
'UP', // Uttar Pradesh
|
||||
'UT', // Uttarakhand
|
||||
'WB', // West Bengal
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,6 +40,6 @@ final class IoSubdivisionCode extends AbstractSearcher
|
|||
'PB', // Peros Banhos
|
||||
'SI', // Salomon Islands
|
||||
'TB', // Three Brothers
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,6 +50,6 @@ final class IqSubdivisionCode extends AbstractSearcher
|
|||
'SD', // Salah ad Din
|
||||
'SU', // As Sulaymānīyah
|
||||
'WA', // Wasit
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,6 +63,6 @@ final class IrSubdivisionCode extends AbstractSearcher
|
|||
'30', // Razavi Khorasan
|
||||
'31', // North Khorasan
|
||||
'32', // Alborz
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,6 +40,6 @@ final class IsSubdivisionCode extends AbstractSearcher
|
|||
'6', // Norðurland Eystra
|
||||
'7', // Austurland
|
||||
'8', // Suðurland
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -158,6 +158,6 @@ final class ItSubdivisionCode extends AbstractSearcher
|
|||
'VR', // Verona
|
||||
'VT', // Viterbo
|
||||
'VV', // Vibo Valentia
|
||||
];
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue