Passed
Push — master ( 29df4b...b6e888 )
by Eric
02:07
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/Exception/NumverifyApiResponseException.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,4 +23,6 @@
 block discarded – undo
23 23
  *
24 24
  * @see \Numverify\Tests\Exception\NumverifyApiResponseExceptionTest
25 25
  */
26
-class NumverifyApiResponseException extends RuntimeException {}
26
+class NumverifyApiResponseException extends RuntimeException
27
+{
28
+}
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
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
      *
240 240
      * @return ApiCountryJsonArray|ApiJsonArray|stdClass
241 241
      */
242
-    private static function validateAndDecodeResponse(ResponseInterface $response, bool $asArray = false): array|stdClass
242
+    private static function validateAndDecodeResponse(ResponseInterface $response, bool $asArray = false): array | stdClass
243 243
     {
244 244
         // If not 200 ok
245 245
         if ($response->getStatusCode() !== 200) {
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
@@ -31,7 +31,9 @@
 block discarded – undo
31 31
     /**
32 32
      * Country constructor.
33 33
      */
34
-    public function __construct(private string $countryCode, private string $countryName, private string $dialingCode) {}
34
+    public function __construct(private string $countryCode, private string $countryName, private string $dialingCode)
35
+    {
36
+}
35 37
 
36 38
     /**
37 39
      * {@inheritDoc}
Please login to merge, or discard this patch.
src/Country/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
     /**
104 104
      * @inheritDoc
105 105
      */
106
-    public function key(): null|int|string
106
+    public function key(): null | int | string
107 107
     {
108 108
         return key($this->byCountryCode);
109 109
     }
Please login to merge, or discard this patch.