Passed
Push — master ( d7be5e...a40043 )
by Eric
02:12
created
tests/ApiCountryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
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"}
Please login to merge, or discard this patch.
src/Country/Country.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,9 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.