mirror of
https://github.com/Respect/Validation.git
synced 2024-06-03 06:12:17 +02:00
Apply "Squiz.PHP.CommentedOutCode"
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
111b3de436
commit
ee1d49a2cf
|
@ -20,9 +20,9 @@ namespace Respect\Validation\Exceptions;
|
|||
*/
|
||||
final class NoWhitespaceException extends ValidationException
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public static $defaultTemplates = [
|
||||
self::MODE_DEFAULT => [
|
||||
self::STANDARD => '{{name}} must not contain whitespace',
|
||||
|
|
|
@ -131,7 +131,7 @@ final class CurrencyCode extends AbstractSearcher
|
|||
'MVR', // Rufiyaa
|
||||
'MWK', // Kwacha
|
||||
'MXN', // Mexican Peso
|
||||
'MXV', // Mexican Unidad de Inversion (UDI)
|
||||
'MXV', // Mexican Unidad de Inversion - UDI
|
||||
'MYR', // Malaysian Ringgit
|
||||
'MZN', // Mozambique Metical
|
||||
'NAD', // Namibia Dollar
|
||||
|
@ -180,8 +180,8 @@ final class CurrencyCode extends AbstractSearcher
|
|||
'UAH', // Hryvnia
|
||||
'UGX', // Uganda Shilling
|
||||
'USD', // US Dollar
|
||||
'USN', // US Dollar (Next day)
|
||||
'UYI', // Uruguay Peso en Unidades Indexadas (URUIURUI)
|
||||
'USN', // US Dollar - Next day
|
||||
'UYI', // Uruguay Peso en Unidades Indexadas - URUIURUI
|
||||
'UYU', // Peso Uruguayo
|
||||
'UZS', // Uzbekistan Sum
|
||||
'VEF', // Bolivar
|
||||
|
@ -191,12 +191,12 @@ final class CurrencyCode extends AbstractSearcher
|
|||
'XAF', // CFA Franc BEAC
|
||||
'XAG', // Silver
|
||||
'XAU', // Gold
|
||||
'XBA', // Bond Markets Unit European Composite Unit (EURCO)
|
||||
'XBB', // Bond Markets Unit European Monetary Unit (E.M.U.-6)
|
||||
'XBC', // Bond Markets Unit European Unit of Account 9 (E.U.A.-9)
|
||||
'XBD', // Bond Markets Unit European Unit of Account 17 (E.U.A.-17)
|
||||
'XBA', // Bond Markets Unit European Composite Unit - EURCO
|
||||
'XBB', // Bond Markets Unit European Monetary Unit - E.M.U.-6
|
||||
'XBC', // Bond Markets Unit European Unit of Account 9 - E.U.A.-9
|
||||
'XBD', // Bond Markets Unit European Unit of Account 17 - E.U.A.-17
|
||||
'XCD', // East Caribbean Dollar
|
||||
'XDR', // SDR (Special Drawing Right)
|
||||
'XDR', // SDR - Special Drawing Right
|
||||
'XOF', // CFA Franc BCEAO
|
||||
'XPD', // Palladium
|
||||
'XPF', // CFP Franc
|
||||
|
|
|
@ -57,11 +57,11 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'alg'], // Algonquian languages
|
||||
['', 'alt'], // Southern altai
|
||||
['am', 'amh'], // Amharic
|
||||
['', 'ang'], // English, old (ca.450-1100)
|
||||
['', 'ang'], // English, old - ca.450-1100
|
||||
['', 'anp'], // Angika
|
||||
['', 'apa'], // Apache languages
|
||||
['ar', 'ara'], // Arabic
|
||||
['', 'arc'], // Official aramaic (700-300 bce); Imperial aramaic (700-300 bce)
|
||||
['', 'arc'], // Official aramaic - 700-300 bce; Imperial aramaic - 700-300 bce
|
||||
['an', 'arg'], // Aragonese
|
||||
['hy', 'arm'], // Armenian
|
||||
['', 'arn'], // Mapudungun; Mapuche
|
||||
|
@ -97,7 +97,7 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'bin'], // Bini; Edo
|
||||
['bi', 'bis'], // Bislama
|
||||
['', 'bla'], // Siksika
|
||||
['', 'bnt'], // Bantu (other)
|
||||
['', 'bnt'], // Bantu - other
|
||||
['bs', 'bos'], // Bosnian
|
||||
['', 'bra'], // Braj
|
||||
['br', 'bre'], // Breton
|
||||
|
@ -146,7 +146,7 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'dar'], // Dargwa
|
||||
['', 'day'], // Land dayak languages
|
||||
['', 'del'], // Delaware
|
||||
['', 'den'], // Slave (athapascan)
|
||||
['', 'den'], // Slave - athapascan
|
||||
['', 'dgr'], // Dogrib
|
||||
['', 'din'], // Dinka
|
||||
['dv', 'div'], // Divehi; Dhivehi; Maldivian
|
||||
|
@ -154,16 +154,16 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'dra'], // Dravidian languages
|
||||
['', 'dsb'], // Lower sorbian
|
||||
['', 'dua'], // Duala
|
||||
['', 'dum'], // Dutch, middle (ca.1050-1350)
|
||||
['', 'dum'], // Dutch, middle - ca.1050-1350
|
||||
['nl', 'dut'], // Dutch; Flemish
|
||||
['', 'dyu'], // Dyula
|
||||
['dz', 'dzo'], // Dzongkha
|
||||
['', 'efi'], // Efik
|
||||
['', 'egy'], // Egyptian (ancient)
|
||||
['', 'egy'], // Egyptian - ancient
|
||||
['', 'eka'], // Ekajuk
|
||||
['', 'elx'], // Elamite
|
||||
['en', 'eng'], // English
|
||||
['', 'enm'], // English, middle (1100-1500)
|
||||
['', 'enm'], // English, middle - 1100-1500
|
||||
['eo', 'epo'], // Esperanto
|
||||
['et', 'est'], // Estonian
|
||||
['ee', 'ewe'], // Ewe
|
||||
|
@ -177,8 +177,8 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'fiu'], // Finno-ugrian languages
|
||||
['', 'fon'], // Fon
|
||||
['fr', 'fre'], // French
|
||||
['', 'frm'], // French, middle (ca.1400-1600)
|
||||
['', 'fro'], // French, old (842-ca.1400)
|
||||
['', 'frm'], // French, middle - ca.1400-1600
|
||||
['', 'fro'], // French, old - 842-ca.1400
|
||||
['', 'frr'], // Northern frisian
|
||||
['', 'frs'], // Eastern frisian
|
||||
['fy', 'fry'], // Western frisian
|
||||
|
@ -196,14 +196,14 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['ga', 'gle'], // Irish
|
||||
['gl', 'glg'], // Galician
|
||||
['gv', 'glv'], // Manx
|
||||
['', 'gmh'], // German, middle high (ca.1050-1500)
|
||||
['', 'goh'], // German, old high (ca.750-1050)
|
||||
['', 'gmh'], // German, middle high - ca.1050-1500
|
||||
['', 'goh'], // German, old high - ca.750-1050
|
||||
['', 'gon'], // Gondi
|
||||
['', 'gor'], // Gorontalo
|
||||
['', 'got'], // Gothic
|
||||
['', 'grb'], // Grebo
|
||||
['', 'grc'], // Greek, ancient (to 1453)
|
||||
['el', 'gre'], // Greek, modern (1453-)
|
||||
['', 'grc'], // Greek, ancient - to 1453
|
||||
['el', 'gre'], // Greek, modern - 1453-
|
||||
['gn', 'grn'], // Guarani
|
||||
['', 'gsw'], // Swiss german; Alemannic; Alsatian
|
||||
['gu', 'guj'], // Gujarati
|
||||
|
@ -233,7 +233,7 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['iu', 'iku'], // Inuktitut
|
||||
['ie', 'ile'], // Interlingue; Occidental
|
||||
['', 'ilo'], // Iloko
|
||||
['ia', 'ina'], // Interlingua (international auxiliary language association)
|
||||
['ia', 'ina'], // Interlingua - international auxiliary language association
|
||||
['', 'inc'], // Indic languages
|
||||
['id', 'ind'], // Indonesian
|
||||
['', 'ine'], // Indo-european languages
|
||||
|
@ -299,7 +299,7 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['lg', 'lug'], // Ganda
|
||||
['', 'lui'], // Luiseno
|
||||
['', 'lun'], // Lunda
|
||||
['', 'luo'], // Luo (kenya and tanzania)
|
||||
['', 'luo'], // Luo - kenya and tanzania
|
||||
['', 'lus'], // Lushai
|
||||
['mk', 'mac'], // Macedonian
|
||||
['', 'mad'], // Madurese
|
||||
|
@ -317,7 +317,7 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'mdf'], // Moksha
|
||||
['', 'mdr'], // Mandar
|
||||
['', 'men'], // Mende
|
||||
['', 'mga'], // Irish, middle (900-1200)
|
||||
['', 'mga'], // Irish, middle - 900-1200
|
||||
['', 'mic'], // Mi'kmaq; Micmac
|
||||
['', 'min'], // Minangkabau
|
||||
['', 'mis'], // Uncoded languages
|
||||
|
@ -365,13 +365,13 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'nyn'], // Nyankole
|
||||
['', 'nyo'], // Nyoro
|
||||
['', 'nzi'], // Nzima
|
||||
['oc', 'oci'], // Occitan (post 1500); Provençal
|
||||
['oc', 'oci'], // Occitan - post 1500; Provençal
|
||||
['oj', 'oji'], // Ojibwa
|
||||
['or', 'ori'], // Oriya
|
||||
['om', 'orm'], // Oromo
|
||||
['', 'osa'], // Osage
|
||||
['os', 'oss'], // Ossetian; Ossetic
|
||||
['', 'ota'], // Turkish, ottoman (1500-1928)
|
||||
['', 'ota'], // Turkish, ottoman - 1500-1928
|
||||
['', 'oto'], // Otomian languages
|
||||
['', 'paa'], // Papuan languages
|
||||
['', 'pag'], // Pangasinan
|
||||
|
@ -380,7 +380,7 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['pa', 'pan'], // Panjabi; Punjabi
|
||||
['', 'pap'], // Papiamento
|
||||
['', 'pau'], // Palauan
|
||||
['', 'peo'], // Persian, old (ca.600-400 b.c.)
|
||||
['', 'peo'], // Persian, old - ca.600-400 b.c.
|
||||
['fa', 'per'], // Persian
|
||||
['', 'phi'], // Philippine languages
|
||||
['', 'phn'], // Phoenician
|
||||
|
@ -389,7 +389,7 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'pon'], // Pohnpeian
|
||||
['pt', 'por'], // Portuguese
|
||||
['', 'pra'], // Prakrit languages
|
||||
['', 'pro'], // Provençal, old (to 1500)
|
||||
['', 'pro'], // Provençal, old - to 1500
|
||||
['ps', 'pus'], // Pushto; Pashto
|
||||
['', 'qaa-qtz'], // Reserved for local use
|
||||
['qu', 'que'], // Quechua
|
||||
|
@ -406,7 +406,7 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'sad'], // Sandawe
|
||||
['sg', 'sag'], // Sango
|
||||
['', 'sah'], // Yakut
|
||||
['', 'sai'], // South american indian (other)
|
||||
['', 'sai'], // South american indian - other
|
||||
['', 'sal'], // Salishan languages
|
||||
['', 'sam'], // Samaritan aramaic
|
||||
['sa', 'san'], // Sanskrit
|
||||
|
@ -416,7 +416,7 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'sco'], // Scots
|
||||
['', 'sel'], // Selkup
|
||||
['', 'sem'], // Semitic languages
|
||||
['', 'sga'], // Irish, old (to 900)
|
||||
['', 'sga'], // Irish, old - to 900
|
||||
['', 'sgn'], // Sign languages
|
||||
['', 'shn'], // Shan
|
||||
['', 'sid'], // Sidamo
|
||||
|
@ -474,8 +474,8 @@ final class LanguageCode extends AbstractEnvelope
|
|||
['', 'tlh'], // Klingon; Tlhingan-hol
|
||||
['', 'tli'], // Tlingit
|
||||
['', 'tmh'], // Tamashek
|
||||
['', 'tog'], // Tonga (nyasa)
|
||||
['to', 'ton'], // Tonga (tonga islands)
|
||||
['', 'tog'], // Tonga - nyasa
|
||||
['to', 'ton'], // Tonga - tonga islands
|
||||
['', 'tpi'], // Tok pisin
|
||||
['', 'tsi'], // Tsimshian
|
||||
['tn', 'tsn'], // Tswana
|
||||
|
|
|
@ -41,7 +41,7 @@ final class BaSubdivisionCode extends AbstractSearcher
|
|||
'07', // Hercegovačko-neretvanski kanton
|
||||
'08', // Zapadnohercegovački kanton
|
||||
'09', // Kanton Sarajevo
|
||||
'10', // Kanton br. 10 (Livanjski kanton)
|
||||
'10', // Kanton br. 10 - Livanjski kanton
|
||||
'BIH', // Federacija Bosna i Hercegovina
|
||||
'BRC', // Brcko District
|
||||
'SRP', // Republika Srpska
|
||||
|
|
|
@ -32,21 +32,21 @@ final class ClSubdivisionCode extends AbstractSearcher
|
|||
protected function getDataSource(): array
|
||||
{
|
||||
return [
|
||||
'AI', // Aisen del General Carlos Ibanez del Campo (XI)
|
||||
'AN', // Antofagasta (II)
|
||||
'AI', // Aisen del General Carlos Ibanez del Campo - XI
|
||||
'AN', // Antofagasta - II
|
||||
'AP', // Arica y Parinacota
|
||||
'AR', // Araucania (IX)
|
||||
'AT', // Atacama (III)
|
||||
'BI', // Bio-Bio (VIII)
|
||||
'CO', // Coquimbo (IV)
|
||||
'LI', // Libertador General Bernardo O'Higgins (VI)
|
||||
'LL', // Los Lagos (X)
|
||||
'AR', // Araucania - IX
|
||||
'AT', // Atacama - III
|
||||
'BI', // Bio-Bio - VIII
|
||||
'CO', // Coquimbo - IV
|
||||
'LI', // Libertador General Bernardo O'Higgins - VI
|
||||
'LL', // Los Lagos - X
|
||||
'LR', // Los Ríos
|
||||
'MA', // Magallanes (XII)
|
||||
'ML', // Maule (VII)
|
||||
'RM', // Region Metropolitana (RM)
|
||||
'TA', // Tarapaca (I)
|
||||
'VS', // Valparaiso (V)
|
||||
'MA', // Magallanes - XII
|
||||
'ML', // Maule - VII
|
||||
'RM', // Region Metropolitana - RM
|
||||
'TA', // Tarapaca - I
|
||||
'VS', // Valparaiso - V
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,16 +32,16 @@ final class CmSubdivisionCode extends AbstractSearcher
|
|||
protected function getDataSource(): array
|
||||
{
|
||||
return [
|
||||
'AD', // Adamawa Province (Adamaoua)
|
||||
'AD', // Adamawa Province - Adamaoua
|
||||
'CE', // Centre Province
|
||||
'EN', // Extreme North Province (Extrême-Nord)
|
||||
'ES', // East Province (Est)
|
||||
'EN', // Extreme North Province - Extrême-Nord
|
||||
'ES', // East Province - Est
|
||||
'LT', // Littoral Province
|
||||
'NO', // North Province (Nord)
|
||||
'NW', // Northwest Province (Nord-Ouest)
|
||||
'OU', // West Province (Ouest)
|
||||
'SU', // South Province (Sud)
|
||||
'SW', // Southwest Province (Sud-Ouest).
|
||||
'NO', // North Province - Nord
|
||||
'NW', // Northwest Province - Nord-Ouest
|
||||
'OU', // West Province - Ouest
|
||||
'SU', // South Province - Sud
|
||||
'SW', // Southwest Province - Sud-Ouest.
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ final class CnSubdivisionCode extends AbstractSearcher
|
|||
'TJ', // Tianjin
|
||||
'TW', // Taiwan
|
||||
'XJ', // Xinjiang
|
||||
'XZ', // Xizang Zìzhìqu (Tibet)
|
||||
'XZ', // Xizang Zìzhìqu - Tibet
|
||||
'YN', // Yunnan
|
||||
'ZJ', // Zhejiang
|
||||
];
|
||||
|
|
|
@ -32,7 +32,7 @@ final class CzSubdivisionCode extends AbstractSearcher
|
|||
protected function getDataSource(): array
|
||||
{
|
||||
return [
|
||||
'10', // Prague - the Capital (Praha - hlavni mesto)
|
||||
'10', // Prague - the Capital - Praha - hlavni mesto
|
||||
'101', // Praha 1
|
||||
'102', // Praha 2
|
||||
'103', // Praha 3
|
||||
|
@ -55,7 +55,7 @@ final class CzSubdivisionCode extends AbstractSearcher
|
|||
'120', // Praha 20
|
||||
'121', // Praha 21
|
||||
'122', // Praha 22
|
||||
'20', // Central Bohemian Region (Stredocesky kraj)
|
||||
'20', // Central Bohemian Region - Stredocesky kraj
|
||||
'201', // Benešov
|
||||
'202', // Beroun
|
||||
'203', // Kladno
|
||||
|
@ -68,7 +68,7 @@ final class CzSubdivisionCode extends AbstractSearcher
|
|||
'20A', // Praha-západ
|
||||
'20B', // Příbram
|
||||
'20C', // Rakovník
|
||||
'31', // South Bohemian Region (Jihocesky kraj)
|
||||
'31', // South Bohemian Region - Jihocesky kraj
|
||||
'311', // České Budějovice
|
||||
'312', // Český Krumlov
|
||||
'313', // Jindřichův Hradec
|
||||
|
@ -84,11 +84,11 @@ final class CzSubdivisionCode extends AbstractSearcher
|
|||
'325', // Plzeň-sever
|
||||
'326', // Rokycany
|
||||
'327', // Tachov
|
||||
'41', // Carlsbad Region (Karlovarsky kraj)
|
||||
'41', // Carlsbad Region - Karlovarsky kraj
|
||||
'411', // Cheb
|
||||
'412', // Karlovy Vary
|
||||
'413', // Sokolov
|
||||
'42', // Usti nad Labem Region (Ustecky kraj)
|
||||
'42', // Usti nad Labem Region - Ustecky kraj
|
||||
'421', // Děčín
|
||||
'422', // Chomutov
|
||||
'423', // Litoměřice
|
||||
|
@ -96,29 +96,29 @@ final class CzSubdivisionCode extends AbstractSearcher
|
|||
'425', // Most
|
||||
'426', // Teplice
|
||||
'427', // Ústí nad Labem
|
||||
'51', // Liberec Region (Liberecky kraj)
|
||||
'51', // Liberec Region - Liberecky kraj
|
||||
'511', // Česká Lípa
|
||||
'512', // Jablonec nad Nisou
|
||||
'513', // Liberec
|
||||
'514', // Semily
|
||||
'52', // Hradec Kralove Region (Kralovehradecky kraj)
|
||||
'52', // Hradec Kralove Region - Kralovehradecky kraj
|
||||
'521', // Hradec Králové
|
||||
'522', // Jičín
|
||||
'523', // Náchod
|
||||
'524', // Rychnov nad Kněžnou
|
||||
'525', // Trutnov
|
||||
'53', // Pardubice Region (Pardubicky kraj)
|
||||
'53', // Pardubice Region - Pardubicky kraj
|
||||
'531', // Chrudim
|
||||
'532', // Pardubice
|
||||
'533', // Svitavy
|
||||
'534', // Ústí nad Orlicí
|
||||
'63', // Vysocina Region (kraj Vysocina)
|
||||
'63', // Vysocina Region - kraj Vysocina
|
||||
'631', // Havlíčkův Brod
|
||||
'632', // Jihlava
|
||||
'633', // Pelhřimov
|
||||
'634', // Třebíč
|
||||
'635', // Žd’ár nad Sázavou
|
||||
'64', // South Moravian Region (Jihomoravsky kraj)
|
||||
'64', // South Moravian Region - Jihomoravsky kraj
|
||||
'641', // Blansko
|
||||
'642', // Brno-město
|
||||
'643', // Brno-venkov
|
||||
|
@ -126,18 +126,18 @@ final class CzSubdivisionCode extends AbstractSearcher
|
|||
'645', // Hodonín
|
||||
'646', // Vyškov
|
||||
'647', // Znojmo
|
||||
'71', // Olomouc Region (Olomoucky kraj)
|
||||
'71', // Olomouc Region - Olomoucky kraj
|
||||
'711', // Jeseník
|
||||
'712', // Olomouc
|
||||
'713', // Prostĕjov
|
||||
'714', // Přerov
|
||||
'715', // Šumperk
|
||||
'72', // Zlin Region (Zlinsky kraj)
|
||||
'72', // Zlin Region - Zlinsky kraj
|
||||
'721', // Kromĕříž
|
||||
'722', // Uherské Hradištĕ
|
||||
'723', // Vsetín
|
||||
'724', // Zlín
|
||||
'80', // Moravian-Silesian Region (Moravskoslezsky kraj)
|
||||
'80', // Moravian-Silesian Region - Moravskoslezsky kraj
|
||||
'801', // Bruntál
|
||||
'802', // Frýdek - Místek
|
||||
'803', // Karviná
|
||||
|
|
|
@ -48,7 +48,7 @@ final class DoSubdivisionCode extends AbstractSearcher
|
|||
'14', // Maria Trinidad Sanchez
|
||||
'15', // Monte Cristi
|
||||
'16', // Pedernales
|
||||
'17', // Peravia (Bani)
|
||||
'17', // Peravia - Bani
|
||||
'18', // Puerto Plata
|
||||
'19', // Salcedo
|
||||
'20', // Samana
|
||||
|
|
|
@ -32,12 +32,12 @@ final class ErSubdivisionCode extends AbstractSearcher
|
|||
protected function getDataSource(): array
|
||||
{
|
||||
return [
|
||||
'AN', // Anseba (Keren)
|
||||
'DK', // Southern Red Sea (Debub-Keih-Bahri)
|
||||
'DU', // Southern (Debub)
|
||||
'GB', // Gash-Barka (Barentu)
|
||||
'MA', // Central (Maekel)
|
||||
'SK', // Northern Red Sea (Semien-Keih-Bahri)
|
||||
'AN', // Anseba - Keren
|
||||
'DK', // Southern Red Sea - Debub-Keih-Bahri
|
||||
'DU', // Southern - Debub
|
||||
'GB', // Gash-Barka - Barentu
|
||||
'MA', // Central - Maekel
|
||||
'SK', // Northern Red Sea - Semien-Keih-Bahri
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -144,19 +144,19 @@ final class FrSubdivisionCode extends AbstractSearcher
|
|||
'93', // Seine-Saint-Denis
|
||||
'94', // Val-de-Marne
|
||||
'95', // Val-d'Oise
|
||||
'BL', // Saint Barthélemy (see also separate ISO 3166-1 entry under BL)
|
||||
'BL', // Saint Barthélemy - see also separate ISO 3166-1 entry under BL
|
||||
'CP', // Clipperton
|
||||
'GF', // Guyane (française) (see also separate country code entry under GF)
|
||||
'GP', // Guadeloupe (see also separate country code entry under GP)
|
||||
'MF', // Saint Martin (see also separate ISO 3166-1 entry under MF)
|
||||
'MQ', // Martinique (see also separate country code entry under MQ)
|
||||
'NC', // Nouvelle-Calédonie (see also separate ISO 3166-1 entry under NC)
|
||||
'PF', // Polynésie française (see also separate ISO 3166-1 entry under PF)
|
||||
'PM', // Saint-Pierre-et-Miquelon (see also separate ISO 3166-1 entry under PM)
|
||||
'RE', // La Réunion (see also separate country code entry under RE)
|
||||
'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)
|
||||
'GF', // Guyane - française - see also separate country code entry under GF
|
||||
'GP', // Guadeloupe - see also separate country code entry under GP
|
||||
'MF', // Saint Martin - see also separate ISO 3166-1 entry under MF
|
||||
'MQ', // Martinique - see also separate country code entry under MQ
|
||||
'NC', // Nouvelle-Calédonie - see also separate ISO 3166-1 entry under NC
|
||||
'PF', // Polynésie française - see also separate ISO 3166-1 entry under PF
|
||||
'PM', // Saint-Pierre-et-Miquelon - see also separate ISO 3166-1 entry under PM
|
||||
'RE', // La Réunion - see also separate country code entry under RE
|
||||
'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
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ final class GbSubdivisionCode extends AbstractSearcher
|
|||
'CMD', // Camden
|
||||
'CMN', // Carmarthenshire
|
||||
'CON', // Cornwall
|
||||
'COV', // Coventry (West Midlands district)
|
||||
'COV', // Coventry - West Midlands district
|
||||
'CRF', // Cardiff
|
||||
'CRY', // Croydon
|
||||
'CWY', // Conwy
|
||||
|
@ -89,7 +89,7 @@ final class GbSubdivisionCode extends AbstractSearcher
|
|||
'DND', // Dundee
|
||||
'DOR', // Dorset
|
||||
'DRS', // Derry City and Strabane
|
||||
'DUD', // Dudley (West Midlands district)
|
||||
'DUD', // Dudley - West Midlands district
|
||||
'DUR', // Durham
|
||||
'EAL', // Ealing
|
||||
'EAY', // East Ayrshire
|
||||
|
|
|
@ -41,7 +41,7 @@ final class HnSubdivisionCode extends AbstractSearcher
|
|||
'EP', // El Paraiso
|
||||
'FM', // Francisco Morazan
|
||||
'GD', // Gracias a Dios
|
||||
'IB', // Islas de la Bahia (Bay Islands)
|
||||
'IB', // Islas de la Bahia - Bay Islands
|
||||
'IN', // Intibuca
|
||||
'LE', // Lempira
|
||||
'LP', // La Paz
|
||||
|
|
|
@ -52,7 +52,7 @@ final class HrSubdivisionCode extends AbstractSearcher
|
|||
'18', // Istria county
|
||||
'19', // Dubrovnik-Neretva county
|
||||
'20', // Medjimurje county
|
||||
'21', // Zagreb (city)
|
||||
'21', // Zagreb - city
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,46 +38,46 @@ final class JpSubdivisionCode extends AbstractSearcher
|
|||
'04', // Miyagi
|
||||
'05', // Akita
|
||||
'06', // Yamagata
|
||||
'07', // Hukusima (Fukushima)
|
||||
'07', // Hukusima - Fukushima
|
||||
'08', // Ibaraki
|
||||
'09', // Totigi (Tochigi)
|
||||
'09', // Totigi - Tochigi
|
||||
'10', // Gunma
|
||||
'11', // Saitama
|
||||
'12', // Tiba (Chiba)
|
||||
'12', // Tiba - Chiba
|
||||
'13', // Tokyo
|
||||
'14', // Kanagawa
|
||||
'15', // Niigata
|
||||
'16', // Toyama
|
||||
'17', // Isikawa (Ishikawa)
|
||||
'18', // Hukui (Fukui)
|
||||
'19', // Yamanasi (Yamanashi)
|
||||
'17', // Isikawa - Ishikawa
|
||||
'18', // Hukui - Fukui
|
||||
'19', // Yamanasi - Yamanashi
|
||||
'20', // Nagano
|
||||
'21', // Gihu (Gifu)
|
||||
'22', // Sizuoka (Shizuoka)
|
||||
'23', // Aiti (Aichi)
|
||||
'21', // Gihu - Gifu
|
||||
'22', // Sizuoka - Shizuoka
|
||||
'23', // Aiti - Aichi
|
||||
'24', // Mie
|
||||
'25', // Siga (Shiga)
|
||||
'25', // Siga - Shiga
|
||||
'26', // Kyoto
|
||||
'27', // Osaka
|
||||
'28', // Hyogo
|
||||
'29', // Nara
|
||||
'30', // Wakayama
|
||||
'31', // Tottori
|
||||
'32', // Simane (Shimane)
|
||||
'32', // Simane - Shimane
|
||||
'33', // Okayama
|
||||
'34', // Hirosima (Hiroshima)
|
||||
'35', // Yamaguti (Yamaguchi)
|
||||
'36', // Tokusima (Tokushima)
|
||||
'34', // Hirosima - Hiroshima
|
||||
'35', // Yamaguti - Yamaguchi
|
||||
'36', // Tokusima - Tokushima
|
||||
'37', // Kagawa
|
||||
'38', // Ehime
|
||||
'39', // Koti (Kochi)
|
||||
'40', // Hukuoka (Fukuoka)
|
||||
'39', // Koti - Kochi
|
||||
'40', // Hukuoka - Fukuoka
|
||||
'41', // Saga
|
||||
'42', // Nagasaki
|
||||
'43', // Kumamoto
|
||||
'44', // Oita
|
||||
'45', // Miyazaki
|
||||
'46', // Kagosima (Kagoshima)
|
||||
'46', // Kagosima - Kagoshima
|
||||
'47', // Okinawa
|
||||
];
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ final class KhSubdivisionCode extends AbstractSearcher
|
|||
'15', // Pursat
|
||||
'16', // Rôtânôkiri
|
||||
'17', // Siemreap
|
||||
'18', // Preah Seihanu (Kompong Som or Sihanoukville)
|
||||
'18', // Preah Seihanu - Kompong Som or Sihanoukville
|
||||
'19', // Stung Treng
|
||||
'2', // Battambang
|
||||
'20', // Svay Rieng
|
||||
|
|
|
@ -41,8 +41,8 @@ final class KpSubdivisionCode extends AbstractSearcher
|
|||
'07', // Kangwon-do
|
||||
'08', // Hamgyong-namdo
|
||||
'09', // Hamgyong-bukto
|
||||
'10', // Ryanggang-do (Yanggang-do)
|
||||
'13', // Nasŏn (Najin-Sŏnbong)
|
||||
'10', // Ryanggang-do - Yanggang-do
|
||||
'13', // Nasŏn - Najin-Sŏnbong
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,13 +45,13 @@ final class MaSubdivisionCode extends AbstractSearcher
|
|||
'11', // Laâyoune-Sakia El Hamra
|
||||
'12', // Dakhla-Oued Ed-Dahab
|
||||
'AGD', // Agadir-Ida-Outanane
|
||||
'AOU', // Aousserd (EH)
|
||||
'AOU', // Aousserd - EH
|
||||
'ASZ', // Assa-Zag
|
||||
'AZI', // Azilal
|
||||
'BEM', // Beni Mellal
|
||||
'BER', // Berkane
|
||||
'BES', // Ben Slimane
|
||||
'BOD', // Boujdour (EH)
|
||||
'BOD', // Boujdour - EH
|
||||
'BOM', // Boulemane
|
||||
'CAS', // Casablanca [Dar el Beïda]
|
||||
'CHE', // Chefchaouen
|
||||
|
@ -59,7 +59,7 @@ final class MaSubdivisionCode extends AbstractSearcher
|
|||
'CHT', // Chtouka-Ait Baha
|
||||
'ERR', // Errachidia
|
||||
'ESI', // Essaouira
|
||||
'ESM', // Es Smara (EH)
|
||||
'ESM', // Es Smara - EH
|
||||
'FAH', // Fahs-Beni Makada
|
||||
'FES', // Fès-Dar-Dbibegh
|
||||
'FIG', // Figuig
|
||||
|
@ -87,7 +87,7 @@ final class MaSubdivisionCode extends AbstractSearcher
|
|||
'NAD', // Nador
|
||||
'NOU', // Nouaceur
|
||||
'OUA', // Ouarzazate
|
||||
'OUD', // Oued ed Dahab (EH)
|
||||
'OUD', // Oued ed Dahab - EH
|
||||
'OUJ', // Oujda-Angad
|
||||
'RAB', // Rabat
|
||||
'SAF', // Safi
|
||||
|
|
|
@ -35,7 +35,7 @@ final class MuSubdivisionCode extends AbstractSearcher
|
|||
'AG', // Agalega Islands
|
||||
'BL', // Black River
|
||||
'BR', // Beau Bassin-Rose Hill
|
||||
'CC', // Cargados Carajos Shoals (Saint Brandon Islands)
|
||||
'CC', // Cargados Carajos Shoals - Saint Brandon Islands
|
||||
'CU', // Curepipe
|
||||
'FL', // Flacq
|
||||
'GP', // Grand Port
|
||||
|
|
|
@ -37,7 +37,7 @@ final class MzSubdivisionCode extends AbstractSearcher
|
|||
'G', // Gaza
|
||||
'I', // Inhambane
|
||||
'L', // Maputo
|
||||
'MPM', // Maputo (city)
|
||||
'MPM', // Maputo - city
|
||||
'N', // Nampula
|
||||
'P', // Cabo Delgado
|
||||
'Q', // Zambezia
|
||||
|
|
|
@ -50,7 +50,7 @@ final class PtSubdivisionCode extends AbstractSearcher
|
|||
'16', // Viana do Castelo
|
||||
'17', // Vila Real
|
||||
'18', // Viseu
|
||||
'20', // Acores (Azores)
|
||||
'20', // Acores - Azores
|
||||
'30', // Madeira
|
||||
];
|
||||
}
|
||||
|
|
|
@ -73,8 +73,8 @@ final class RuSubdivisionCode extends AbstractSearcher
|
|||
'MAG', // Magadan
|
||||
'ME', // Mari El
|
||||
'MO', // Mordovia
|
||||
'MOS', // Moscow (Province)
|
||||
'MOW', // Moscow (City)
|
||||
'MOS', // Moscow - Province
|
||||
'MOW', // Moscow - City
|
||||
'MUR', // Murmansk
|
||||
'NEN', // Nenetsia
|
||||
'NGR', // Novgorod
|
||||
|
|
|
@ -35,7 +35,7 @@ final class SaSubdivisionCode extends AbstractSearcher
|
|||
'01', // Ar Riyad
|
||||
'02', // Makkah
|
||||
'03', // Al Madinah
|
||||
'04', // Ash Sharqiyah (Eastern Province)
|
||||
'04', // Ash Sharqiyah - Eastern Province
|
||||
'05', // Al Qasim
|
||||
'06', // Ha'il
|
||||
'07', // Tabuk
|
||||
|
|
|
@ -44,8 +44,8 @@ final class ScSubdivisionCode extends AbstractSearcher
|
|||
'10', // Bel Ombre
|
||||
'11', // Cascade
|
||||
'12', // Glacis
|
||||
'13', // Grand' Anse (on Mahe)
|
||||
'14', // Grand' Anse (on Praslin)
|
||||
'13', // Grand' Anse - on Mahe
|
||||
'14', // Grand' Anse - on Praslin
|
||||
'15', // La Digue
|
||||
'16', // La Riviere Anglaise
|
||||
'17', // Mont Buxton
|
||||
|
|
|
@ -32,8 +32,8 @@ final class ZwSubdivisionCode extends AbstractSearcher
|
|||
protected function getDataSource(): array
|
||||
{
|
||||
return [
|
||||
'BU', // Bulawayo (city)
|
||||
'HA', // Harare (city)
|
||||
'BU', // Bulawayo - city
|
||||
'HA', // Harare - city
|
||||
'MA', // Manicaland
|
||||
'MC', // Mashonaland Central
|
||||
'ME', // Mashonaland East
|
||||
|
|
|
@ -27,9 +27,9 @@ use function preg_match;
|
|||
*/
|
||||
final class NoWhitespace extends AbstractRule
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function validate($input): bool
|
||||
{
|
||||
if (is_null($input)) {
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing" />
|
||||
<rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable" />
|
||||
<rule ref="SlevomatCodingStandard.Variables.UselessVariable" />
|
||||
<rule ref="Squiz.PHP.CommentedOutCode" />
|
||||
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
|
||||
<properties>
|
||||
<property name="spacing" value="1" />
|
||||
|
|
|
@ -79,7 +79,6 @@ class CntrlTest extends TestCase
|
|||
["\r"],
|
||||
["\t"],
|
||||
["\n\r\t"],
|
||||
// array("\n \n", ' '), TODO Verify this
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -27,9 +27,9 @@ use Respect\Validation\Test\RuleTestCase;
|
|||
*/
|
||||
final class FloatValTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
{
|
||||
$rule = new FloatVal();
|
||||
|
@ -47,9 +47,9 @@ final class FloatValTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
{
|
||||
$rule = new FloatVal();
|
||||
|
|
|
@ -27,9 +27,9 @@ use Respect\Validation\Test\RuleTestCase;
|
|||
*/
|
||||
final class IntValTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
{
|
||||
$rule = new IntVal();
|
||||
|
@ -44,9 +44,9 @@ final class IntValTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
{
|
||||
$rule = new IntVal();
|
||||
|
|
|
@ -28,7 +28,7 @@ use Respect\Validation\Test\RuleTestCase;
|
|||
*/
|
||||
final class LeapDateTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
|
@ -41,7 +41,7 @@ final class LeapDateTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
|
|
|
@ -28,9 +28,9 @@ use stdClass;
|
|||
*/
|
||||
final class LowercaseTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
{
|
||||
$rule = new Lowercase();
|
||||
|
@ -49,9 +49,9 @@ final class LowercaseTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
{
|
||||
$rule = new Lowercase();
|
||||
|
|
|
@ -28,9 +28,9 @@ use stdClass;
|
|||
*/
|
||||
final class NegativeTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
{
|
||||
$rule = new Negative();
|
||||
|
@ -42,9 +42,9 @@ final class NegativeTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
{
|
||||
$rule = new Negative();
|
||||
|
|
|
@ -28,9 +28,9 @@ use Respect\Validation\Test\RuleTestCase;
|
|||
*/
|
||||
final class NoWhitespaceTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
{
|
||||
$rule = new NoWhitespace();
|
||||
|
@ -44,7 +44,7 @@ final class NoWhitespaceTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
|
|
|
@ -32,9 +32,9 @@ use function sqrt;
|
|||
*/
|
||||
final class NumberTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
{
|
||||
$rule = new Number();
|
||||
|
@ -51,9 +51,9 @@ final class NumberTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
{
|
||||
$rule = new Number();
|
||||
|
|
|
@ -28,9 +28,9 @@ use function tmpfile;
|
|||
*/
|
||||
final class OddTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
{
|
||||
$rule = new Odd();
|
||||
|
@ -43,9 +43,9 @@ final class OddTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
{
|
||||
$rule = new Odd();
|
||||
|
|
|
@ -28,9 +28,9 @@ use stdClass;
|
|||
*/
|
||||
final class PositiveTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
{
|
||||
$rule = new Positive();
|
||||
|
@ -43,9 +43,9 @@ final class PositiveTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
{
|
||||
$rule = new Positive();
|
||||
|
|
|
@ -27,9 +27,9 @@ use Respect\Validation\Test\RuleTestCase;
|
|||
*/
|
||||
final class PrimeNumberTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
{
|
||||
$rule = new PrimeNumber();
|
||||
|
@ -44,9 +44,9 @@ final class PrimeNumberTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
{
|
||||
$rule = new PrimeNumber();
|
||||
|
|
|
@ -28,9 +28,9 @@ use stdClass;
|
|||
*/
|
||||
final class UppercaseTest extends RuleTestCase
|
||||
{
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
{
|
||||
$rule = new Uppercase();
|
||||
|
@ -50,9 +50,9 @@ final class UppercaseTest extends RuleTestCase
|
|||
];
|
||||
}
|
||||
|
||||
/*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
{
|
||||
$rule = new Uppercase();
|
||||
|
|
Loading…
Reference in a new issue