@@ -51,7 +51,7 @@ |
||
51 | 51 | ) |
52 | 52 | { |
53 | 53 | if ($this->tempDir === null) { |
54 | - $this->tempDir = sys_get_temp_dir() . '/exchange'; |
|
54 | + $this->tempDir = sys_get_temp_dir().'/exchange'; |
|
55 | 55 | } |
56 | 56 | !is_dir($this->tempDir) && mkdir($this->tempDir, 0777, true); |
57 | 57 | $this->allowedCurrencies = Utils::transformCurrencies($allowedCurrencies); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | |
30 | - public function set(string $key, mixed $value, \DateInterval|int|null $ttl = null): bool |
|
30 | + public function set(string $key, mixed $value, \DateInterval | int | null $ttl = null): bool |
|
31 | 31 | { |
32 | 32 | return (bool) file_put_contents($this->file($key), $value); |
33 | 33 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | /** |
59 | 59 | * @param iterable<mixed> $values |
60 | 60 | */ |
61 | - public function setMultiple(iterable $values, \DateInterval|int|null $ttl = null): bool |
|
61 | + public function setMultiple(iterable $values, \DateInterval | int | null $ttl = null): bool |
|
62 | 62 | { |
63 | 63 | throw new \RuntimeException('not implemented'); |
64 | 64 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | private function file(string $key): string |
80 | 80 | { |
81 | 81 | if (!isset($this->keys[$key])) { |
82 | - $this->keys[$key] = $this->tempDir . '/' . md5($key); |
|
82 | + $this->keys[$key] = $this->tempDir.'/'.md5($key); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | return $this->keys[$key]; |
@@ -115,7 +115,7 @@ |
||
115 | 115 | { |
116 | 116 | $suffix = $date === null ? '' : $date->format('.Y-m-d'); |
117 | 117 | |
118 | - return self::driverName($driver) . $suffix; |
|
118 | + return self::driverName($driver).$suffix; |
|
119 | 119 | } |
120 | 120 | |
121 | 121 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * @param array<string, bool|int|string|null>|NumberFormat $setup |
27 | 27 | */ |
28 | - public function setDefaultFormat(array|NumberFormat $setup): void |
|
28 | + public function setDefaultFormat(array | NumberFormat $setup): void |
|
29 | 29 | { |
30 | 30 | if ($this->default !== null) { |
31 | 31 | throw new Exchange\Exceptions\InvalidStateException('Default format could be setup only onetime.'); |
@@ -55,7 +55,7 @@ |
||
55 | 55 | return $url; |
56 | 56 | } |
57 | 57 | |
58 | - return "$url?date=" . urlencode($date->format('d.m.Y')); |
|
58 | + return "$url?date=".urlencode($date->format('d.m.Y')); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | } |