Skip to content

Commit 0a49c9a

Browse files
committed
Add Western Sahara (EH) to CountryAfrica
1 parent 020dc39 commit 0a49c9a

File tree

10 files changed

+33
-16
lines changed

10 files changed

+33
-16
lines changed

data/africa.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ ZW;ZWE;.zw
6161
SS;SSD;.ss
6262
CD;COD;.cd
6363
SZ;SWZ;.sz
64+
EH;ESH;.eh

src/Constants/CountryAfrica.php

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryAfrica (auto-generated with bin/build-countries from "data/africa.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-09-04 20:45:28)
21-
* @since 0.1.0 (2023-09-04 20:45:28) Generated version.
20+
* @version 0.1.0 (2024-05-22 18:59:55)
21+
* @since 0.1.0 (2024-05-22 18:59:55) Generated version.
2222
*/
2323
class CountryAfrica
2424
{
@@ -80,6 +80,7 @@ class CountryAfrica
8080
public const COUNTRY_CODE_ZM = 'ZM';
8181
public const COUNTRY_CODE_ZW = 'ZW';
8282
public const COUNTRY_CODE_SS = 'SS';
83+
public const COUNTRY_CODE_EH = 'EH';
8384

8485
/* Country language names */
8586
public const COUNTRY_NAME_DZ = [
@@ -709,6 +710,17 @@ class CountryAfrica
709710
Locale::PL_PL => 'Sudan Południowy',
710711
Locale::SE_SE => 'Sydsudan',
711712
];
713+
public const COUNTRY_NAME_EH = [
714+
Locale::CS_CZ => 'Západní Sahara',
715+
Locale::DE_DE => 'Westsahara',
716+
Locale::EN_GB => 'Western Sahara',
717+
Locale::ES_ES => 'República Árabe Saharaui Democrática',
718+
Locale::FR_FR => 'Sahara occidental',
719+
Locale::HR_HR => 'Zapadna Sahara',
720+
Locale::IT_IT => 'Sahara occidentale',
721+
Locale::PL_PL => 'Sahara Zachodnia',
722+
Locale::SE_SE => 'Västsahara',
723+
];
712724

713725
/* Countries */
714726
public const COUNTRIES = [
@@ -769,5 +781,6 @@ class CountryAfrica
769781
self::COUNTRY_CODE_ZM => ['name' => self::COUNTRY_NAME_ZM, 'iso2' => 'ZM', 'iso3' => 'ZMB', 'tld' => 'zm', ],
770782
self::COUNTRY_CODE_ZW => ['name' => self::COUNTRY_NAME_ZW, 'iso2' => 'ZW', 'iso3' => 'ZWE', 'tld' => 'zw', ],
771783
self::COUNTRY_CODE_SS => ['name' => self::COUNTRY_NAME_SS, 'iso2' => 'SS', 'iso3' => 'SSD', 'tld' => 'ss', ],
784+
self::COUNTRY_CODE_EH => ['name' => self::COUNTRY_NAME_EH, 'iso2' => 'EH', 'iso3' => 'ESH', 'tld' => 'eh', ],
772785
];
773786
}

src/Constants/CountryAll.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryAll (auto-generated with bin/build-countries from "data/africa.csv, data/antarctica.csv, data/asia.csv, data/australia.csv, data/europe.csv, data/north-america.csv, data/south-america.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-09-04 20:45:28)
21-
* @since 0.1.0 (2023-09-04 20:45:28) Generated version.
20+
* @version 0.1.0 (2024-05-22 18:59:55)
21+
* @since 0.1.0 (2024-05-22 18:59:55) Generated version.
2222
*/
2323
class CountryAll
2424
{
@@ -82,6 +82,7 @@ class CountryAll
8282
CountryAfrica::COUNTRY_CODE_ZM => CountryAfrica::COUNTRY_NAME_ZM,
8383
CountryAfrica::COUNTRY_CODE_ZW => CountryAfrica::COUNTRY_NAME_ZW,
8484
CountryAfrica::COUNTRY_CODE_SS => CountryAfrica::COUNTRY_NAME_SS,
85+
CountryAfrica::COUNTRY_CODE_EH => CountryAfrica::COUNTRY_NAME_EH,
8586

8687
/* Antarctica */
8788
CountryAntarctica::COUNTRY_CODE_AQ => CountryAntarctica::COUNTRY_NAME_AQ,

src/Constants/CountryAntarctica.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryAntarctica (auto-generated with bin/build-countries from "data/antarctica.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-09-04 20:45:28)
21-
* @since 0.1.0 (2023-09-04 20:45:28) Generated version.
20+
* @version 0.1.0 (2024-05-22 18:59:55)
21+
* @since 0.1.0 (2024-05-22 18:59:55) Generated version.
2222
*/
2323
class CountryAntarctica
2424
{

src/Constants/CountryAsia.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryAsia (auto-generated with bin/build-countries from "data/asia.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-09-04 20:45:28)
21-
* @since 0.1.0 (2023-09-04 20:45:28) Generated version.
20+
* @version 0.1.0 (2024-05-22 18:59:55)
21+
* @since 0.1.0 (2024-05-22 18:59:55) Generated version.
2222
*/
2323
class CountryAsia
2424
{

src/Constants/CountryAustralia.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryAustralia (auto-generated with bin/build-countries from "data/australia.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-09-04 20:45:28)
21-
* @since 0.1.0 (2023-09-04 20:45:28) Generated version.
20+
* @version 0.1.0 (2024-05-22 18:59:55)
21+
* @since 0.1.0 (2024-05-22 18:59:55) Generated version.
2222
*/
2323
class CountryAustralia
2424
{

src/Constants/CountryEurope.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryEurope (auto-generated with bin/build-countries from "data/europe.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-09-04 20:45:28)
21-
* @since 0.1.0 (2023-09-04 20:45:28) Generated version.
20+
* @version 0.1.0 (2024-05-22 18:59:55)
21+
* @since 0.1.0 (2024-05-22 18:59:55) Generated version.
2222
*/
2323
class CountryEurope
2424
{

src/Constants/CountryNorthAmerica.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountryNorthAmerica (auto-generated with bin/build-countries from "data/north-america.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-09-04 20:45:28)
21-
* @since 0.1.0 (2023-09-04 20:45:28) Generated version.
20+
* @version 0.1.0 (2024-05-22 18:59:55)
21+
* @since 0.1.0 (2024-05-22 18:59:55) Generated version.
2222
*/
2323
class CountryNorthAmerica
2424
{

src/Constants/CountrySouthAmerica.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* Class CountrySouthAmerica (auto-generated with bin/build-countries from "data/south-america.csv")
1818
*
1919
* @author Björn Hempel <bjoern@hempel.li>
20-
* @version 0.1.0 (2023-09-04 20:45:28)
21-
* @since 0.1.0 (2023-09-04 20:45:28) Generated version.
20+
* @version 0.1.0 (2024-05-22 18:59:55)
21+
* @since 0.1.0 (2024-05-22 18:59:55) Generated version.
2222
*/
2323
class CountrySouthAmerica
2424
{

tests/Unit/TimezoneTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ public function dataProvider(): array
8787
[++$number, 'getCountryName', null, 'Africa/Abidjan', CountryAfrica::COUNTRY_NAME_CI[Locale::EN_GB]],
8888
[++$number, 'getCountryCode', null, 'Africa/Accra', CountryAfrica::COUNTRY_CODE_GH],
8989
[++$number, 'getCountryName', null, 'Africa/Accra', CountryAfrica::COUNTRY_NAME_GH[Locale::EN_GB]],
90+
[++$number, 'getCountryCode', null, 'Africa/El_Aaiun', CountryAfrica::COUNTRY_CODE_EH],
91+
[++$number, 'getCountryName', null, 'Africa/El_Aaiun', CountryAfrica::COUNTRY_NAME_EH[Locale::EN_GB]],
9092

9193
/**
9294
* getCountry/getCountryName: Asia

0 commit comments

Comments
 (0)