@@ -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]; |
@@ -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 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | |
41 | - public function flush(string|Driver\Driver $driver, \DateTimeInterface $date = null): void |
|
41 | + public function flush(string | Driver\Driver $driver, \DateTimeInterface $date = null): void |
|
42 | 42 | { |
43 | 43 | $this->cache->delete( |
44 | 44 | self::createKey(is_string($driver) ? $driver : $driver::class, $date), |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | { |
120 | 120 | $suffix = $date === null ? '' : $date->format('.Y-m-d'); |
121 | 121 | |
122 | - return self::driverName($driver) . $suffix; |
|
122 | + return self::driverName($driver).$suffix; |
|
123 | 123 | } |
124 | 124 | |
125 | 125 |