@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | return str_replace( |
| 60 | 60 | '{ico}', |
| 61 | 61 | self::normalizeIN($in), |
| 62 | - self::$baseUrl . self::$endpoints[$source], |
|
| 62 | + self::$baseUrl.self::$endpoints[$source], |
|
| 63 | 63 | ); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | string $cisloOrientacniPismeno |
| 86 | 86 | ): ?string |
| 87 | 87 | { |
| 88 | - $houseNumber = Strings::trimNull(trim($cisloDomovni . '/' . $cisloOrientacni, '/')); |
|
| 88 | + $houseNumber = Strings::trimNull(trim($cisloDomovni.'/'.$cisloOrientacni, '/')); |
|
| 89 | 89 | $houseNumber = $houseNumber === '0' ? null : $houseNumber; |
| 90 | 90 | |
| 91 | 91 | $cisloOrientacniPismeno = Strings::trimNull($cisloOrientacniPismeno); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $data->in = (string) $json->ico; |
| 19 | 19 | $data->vat_id = Strings::trimNull($json->dic ?? null); |
| 20 | - $data->tin = isset($data->vat_id) ? 'CZ' . $data->vat_id : null; |
|
| 20 | + $data->tin = isset($data->vat_id) ? 'CZ'.$data->vat_id : null; |
|
| 21 | 21 | $data->sources = Helper::services((array) ($json->seznamRegistraci ?? [])); |
| 22 | 22 | |
| 23 | 23 | $data->vat_payer = $data->sources[Sources::SER_NO_DPH] === true; |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | final class Xml |
| 13 | 13 | { |
| 14 | - public static function toJson(SimpleXMLElement|ResponseInterface $response): stdClass |
|
| 14 | + public static function toJson(SimpleXMLElement | ResponseInterface $response): stdClass |
|
| 15 | 15 | { |
| 16 | 16 | if ($response instanceof ResponseInterface) { |
| 17 | 17 | $xml = @simplexml_load_string($response->getBody()->getContents()); |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | |
| 26 | - public function response(RequestInterface|string $url): ResponseInterface |
|
| 26 | + public function response(RequestInterface | string $url): ResponseInterface |
|
| 27 | 27 | { |
| 28 | 28 | $request = $url instanceof RequestInterface ? $url : $this->createRequest($url); |
| 29 | 29 | try { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | |
| 60 | - public function createXmlRequest(string $url, string|StreamInterface $body): RequestInterface |
|
| 60 | + public function createXmlRequest(string $url, string | StreamInterface $body): RequestInterface |
|
| 61 | 61 | { |
| 62 | 62 | if (is_string($body)) { |
| 63 | 63 | $body = $this->streamFactory->createStream($body); |