@@ -143,7 +143,7 @@ |
||
| 143 | 143 | ): Api&MockObject { |
| 144 | 144 | // Create a mock |
| 145 | 145 | $mockHandler ??= new MockHandler([ |
| 146 | - new Response(200, body: '{ |
|
| 146 | + new Response(200, body : '{ |
|
| 147 | 147 | "JP":{"country_name":"Japan","dialling_code":"+81"}, |
| 148 | 148 | "GB":{"country_name":"United Kingdom","dialling_code":"+44"}, |
| 149 | 149 | "US":{"country_name":"United States","dialling_code":"+1"} |
@@ -30,7 +30,9 @@ |
||
| 30 | 30 | /** |
| 31 | 31 | * Country constructor. |
| 32 | 32 | */ |
| 33 | - public function __construct(private string $countryCode, private string $countryName, private string $dialingCode) {} |
|
| 33 | + public function __construct(private string $countryCode, private string $countryName, private string $dialingCode) |
|
| 34 | + { |
|
| 35 | +} |
|
| 34 | 36 | |
| 35 | 37 | /** |
| 36 | 38 | * Get country code. |
@@ -184,7 +184,7 @@ |
||
| 184 | 184 | $body = $this->validateAndDecodeResponse($response, true); |
| 185 | 185 | |
| 186 | 186 | $countries = array_map( |
| 187 | - static function (array $country, string $countryCode): Country { |
|
| 187 | + static function(array $country, string $countryCode): Country { |
|
| 188 | 188 | return new Country($countryCode, $country['country_name'], $country['dialling_code']); |
| 189 | 189 | }, |
| 190 | 190 | $body, |