@@ -159,7 +159,7 @@ |
||
159 | 159 | /** |
160 | 160 | * Lira |
161 | 161 | */ |
162 | - public const TRY = 'TRY'; |
|
162 | + public const try = 'TRY'; |
|
163 | 163 | |
164 | 164 | /** |
165 | 165 | * Dolar |
@@ -19,7 +19,7 @@ |
||
19 | 19 | public function __construct( |
20 | 20 | private readonly ?string $carrier, |
21 | 21 | private readonly ?string $service, |
22 | - private readonly ?array $countries, |
|
22 | + private readonly ? array $countries, |
|
23 | 23 | Traversable $iterator, |
24 | 24 | ) { |
25 | 25 | parent::__construct($iterator); |
@@ -111,7 +111,7 @@ |
||
111 | 111 | |
112 | 112 | public function getZipCodes(string $carrier, string $service, ?string $country = null): ZipCodeIterator |
113 | 113 | { |
114 | - $response = $this->client->call(Version::V2V1, $carrier, Method::ZIP_CODES, path: sprintf('%s/%s', $service, $country)); |
|
114 | + $response = $this->client->call(Version::V2V1, $carrier, Method::ZIP_CODES, path : sprintf('%s/%s', $service, $country)); |
|
115 | 115 | |
116 | 116 | return $this->zipCodeFactory->createIterator($carrier, $service, $country, $response); |
117 | 117 | } |
@@ -21,8 +21,8 @@ discard block |
||
21 | 21 | private readonly string $type, |
22 | 22 | private readonly ?string $name, |
23 | 23 | private readonly ?ServiceOptionCollection $options = null, |
24 | - private readonly ?array $countries = null, |
|
25 | - private readonly ?array $codCountries = null, |
|
24 | + private readonly ? array $countries = null, |
|
25 | + private readonly ? array $codCountries = null, |
|
26 | 26 | ) { |
27 | 27 | } |
28 | 28 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | 'name' => $this->name, |
62 | 62 | 'options' => $this->options?->__toArray(), |
63 | 63 | 'countries' => $this->countries, |
64 | - 'codCountries' => $this->codCountries !== null ? array_map(static fn (CodCountry $country): array => $country->__toArray(), $this->codCountries) |
|
64 | + 'codCountries' => $this->codCountries !== null ? array_map(static fn (CodCountry $country) : array => $country->__toArray(), $this->codCountries) |
|
65 | 65 | : null, |
66 | 66 | ]; |
67 | 67 | } |