Content-Length: 493173 | pFad | http://github.com/alcohol/iso3166/commit/#start-of-content

68555A8D php-cs-fixer fix · alcohol/iso3166@eefa817 · GitHub
Skip to content

Commit eefa817

Browse files
committed
php-cs-fixer fix
1 parent 3f69211 commit eefa817

File tree

6 files changed

+942
-440
lines changed

6 files changed

+942
-440
lines changed

src/Guards.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class Guards
1818
/**
1919
* Assert that input is not an empty string.
2020
*
21-
* @throws \League\ISO3166\Exception\DomainException if input is an empty string
21+
* @throws DomainException if input is an empty string
2222
*/
2323
public static function guardAgainstInvalidName(string $name): void
2424
{
@@ -30,7 +30,7 @@ public static function guardAgainstInvalidName(string $name): void
3030
/**
3131
* Assert that input looks like an alpha2 key.
3232
*
33-
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha2 key
33+
* @throws DomainException if input does not look like an alpha2 key
3434
*/
3535
public static function guardAgainstInvalidAlpha2(string $alpha2): void
3636
{
@@ -42,7 +42,7 @@ public static function guardAgainstInvalidAlpha2(string $alpha2): void
4242
/**
4343
* Assert that input looks like an alpha3 key.
4444
*
45-
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha3 key
45+
* @throws DomainException if input does not look like an alpha3 key
4646
*/
4747
public static function guardAgainstInvalidAlpha3(string $alpha3): void
4848
{
@@ -54,7 +54,7 @@ public static function guardAgainstInvalidAlpha3(string $alpha3): void
5454
/**
5555
* Assert that input looks like a numeric key.
5656
*
57-
* @throws \League\ISO3166\Exception\DomainException if input does not look like a numeric key
57+
* @throws DomainException if input does not look like a numeric key
5858
*/
5959
public static function guardAgainstInvalidNumeric(string $numeric): void
6060
{

src/ISO3166.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function numeric(string $numeric): array
8484
public function exactName(string $name): array
8585
{
8686
Guards::guardAgainstInvalidName($name);
87-
87+
8888
$value = mb_strtolower($name);
8989

9090
foreach ($this->countries as $country) {
@@ -109,7 +109,7 @@ public function all(): array
109109
/**
110110
* @param 'name'|'alpha2'|'alpha3'|'numeric' $key
111111
*
112-
* @throws \League\ISO3166\Exception\DomainException if an invalid key is specified
112+
* @throws DomainException if an invalid key is specified
113113
*
114114
* @return \Generator<string, array{name: string, alpha2: string, alpha3: string, numeric: numeric-string, currency: string[]}>
115115
*/
@@ -155,7 +155,7 @@ public function getIterator(): \Generator
155155
*
156156
* @param 'name'|'alpha2'|'alpha3'|'numeric' $key
157157
*
158-
* @throws \League\ISO3166\Exception\OutOfBoundsException if key does not exist in dataset
158+
* @throws OutOfBoundsException if key does not exist in dataset
159159
*
160160
* @return array{name: string, alpha2: string, alpha3: string, numeric: numeric-string, currency: string[]}
161161
*/

src/ISO3166DataProvider.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface ISO3166DataProvider
1818
*
1919
* @api
2020
*
21-
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
21+
* @throws Exception\OutOfBoundsException if input does not exist in dataset
2222
*
2323
* @return array<string, mixed>
2424
*/
@@ -29,8 +29,8 @@ public function name(string $name): array;
2929
*
3030
* @api
3131
*
32-
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha2 key
33-
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
32+
* @throws Exception\DomainException if input does not look like an alpha2 key
33+
* @throws Exception\OutOfBoundsException if input does not exist in dataset
3434
*
3535
* @return array<string, mixed>
3636
*/
@@ -41,8 +41,8 @@ public function alpha2(string $alpha2): array;
4141
*
4242
* @api
4343
*
44-
* @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha3 key
45-
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
44+
* @throws Exception\DomainException if input does not look like an alpha3 key
45+
* @throws Exception\OutOfBoundsException if input does not exist in dataset
4646
*
4747
* @return array<string, mixed>
4848
*/
@@ -53,8 +53,8 @@ public function alpha3(string $alpha3): array;
5353
*
5454
* @api
5555
*
56-
* @throws \League\ISO3166\Exception\DomainException if input does not look like a numeric key
57-
* @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
56+
* @throws Exception\DomainException if input does not look like a numeric key
57+
* @throws Exception\OutOfBoundsException if input does not exist in dataset
5858
*
5959
* @return array<string, mixed>
6060
*/

src/ISO3166DataValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function validate(array $data): array
3232
/**
3333
* @param array<string, mixed> $entry
3434
*
35-
* @throws \League\ISO3166\Exception\DomainException if given data entry does not have all the required keys
35+
* @throws DomainException if given data entry does not have all the required keys
3636
*/
3737
private function assertEntryHasRequiredKeys(array $entry): void
3838
{

src/ISO3166WithAliases.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ISO3166WithAliases implements ISO3166DataProvider
1515
{
1616
private ISO3166DataProvider $source;
1717

18-
/** @type array<string, string> */
18+
/** @var array<string, string> */
1919
public const aliases = [
2020
'Bolivia' => 'Bolivia (Plurinational State of)',
2121
'Bolivia, Plurinational State of' => 'Bolivia (Plurinational State of)',

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/alcohol/iso3166/commit/#start-of-content

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy