Passed
Push — master ( 2d3544...07b72c )
by Eric
02:20
created
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/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.
src/Api.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      *
255 255
      * @return ($asArray is true ? ApiCountryJsonArray|ApiJsonArray : InvalidPhoneNumberObject|ValidPhoneNumberObject)
256 256
      */
257
-    private function validateAndDecodeResponse(ResponseInterface $response, bool $asArray = false): array|stdClass
257
+    private function validateAndDecodeResponse(ResponseInterface $response, bool $asArray = false): array | stdClass
258 258
     {
259 259
         // If not 200 ok
260 260
         if ($response->getStatusCode() !== 200) {
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
     /**
277 277
      * @param ApiCountryJsonArray|ApiJsonArray|InvalidPhoneNumberObject|ValidPhoneNumberObject $body
278 278
      */
279
-    private function verifySuccess(array|stdClass $body): bool
279
+    private function verifySuccess(array | stdClass $body): bool
280 280
     {
281 281
         if (!\is_array($body)) {
282 282
             $body = (array) $body;
Please login to merge, or discard this patch.