Completed
Pull Request — master (#31)
by Milan
22s
created
src/AresFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 
14 14
 final class AresFactory
15 15
 {
16
-	private null|GuzzleHttp\Psr7\HttpFactory|HttpFactory $httpFactory = null;
16
+	private null | GuzzleHttp\Psr7\HttpFactory | HttpFactory $httpFactory = null;
17 17
 
18 18
 
19 19
 	public function create(): Ares
Please login to merge, or discard this patch.
src/Http/TransportProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 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 {
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
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 		$data->in = (string) $json->ico;
18 18
 		$data->vat_id = Strings::trimNull($json->dic ?? null);
19
-		$data->tin = isset($data->vat_id) ? 'CZ' . $data->vat_id : null;
19
+		$data->tin = isset($data->vat_id) ? 'CZ'.$data->vat_id : null;
20 20
 		$data->vat_payer = (bool) $data->vat_id;
21 21
 		$data->company = Strings::trimNull($json->obchodniJmeno ?? null);
22 22
 
Please login to merge, or discard this patch.
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.