Completed
Pull Request — master (#31)
by Milan
35s
created
src/Ares/Helper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Ares/Core/JsonToDataTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Tools/Xml.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Http/TransportProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.