@@ -23,4 +23,6 @@ |
||
| 23 | 23 | * |
| 24 | 24 | * @see \Numverify\Tests\Exception\NumverifyApiResponseExceptionTest |
| 25 | 25 | */ |
| 26 | -class NumverifyApiResponseException extends RuntimeException {} |
|
| 26 | +class NumverifyApiResponseException extends RuntimeException |
|
| 27 | +{ |
|
| 28 | +} |
|
@@ -31,7 +31,9 @@ |
||
| 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} |
@@ -103,7 +103,7 @@ |
||
| 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 | } |
@@ -254,7 +254,7 @@ discard block |
||
| 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 |
||
| 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; |