@@ -13,7 +13,7 @@ |
||
13 | 13 | final class CacheHandlerTest extends TestCase |
14 | 14 | { |
15 | 15 | private CacheHandler $handler; |
16 | - private m\MockInterface|CacheInterface $cache; |
|
16 | + private m\MockInterface | CacheInterface $cache; |
|
17 | 17 | |
18 | 18 | protected function setUp(): void |
19 | 19 | { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | private readonly ?string $storage = null, |
18 | 18 | private readonly int $ttl = 86400, |
19 | 19 | private readonly string $prefix = 'session:' |
20 | - ) { |
|
20 | + ){ |
|
21 | 21 | $this->cache = $storageProvider->storage($this->storage); |
22 | 22 | } |
23 | 23 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | return true; |
37 | 37 | } |
38 | 38 | |
39 | - public function gc(int $max_lifetime): int|false |
|
39 | + public function gc(int $max_lifetime): int | false |
|
40 | 40 | { |
41 | 41 | return 0; |
42 | 42 | } |
@@ -49,11 +49,11 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * @throws InvalidArgumentException |
51 | 51 | */ |
52 | - public function read(string $id): string|false |
|
52 | + public function read(string $id): string | false |
|
53 | 53 | { |
54 | 54 | $result = $this->cache->get($this->getKey($id)); |
55 | 55 | |
56 | - return (string) $result; |
|
56 | + return (string)$result; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,6 +66,6 @@ discard block |
||
66 | 66 | |
67 | 67 | private function getKey(string $id): string |
68 | 68 | { |
69 | - return $this->prefix . $id; |
|
69 | + return $this->prefix.$id; |
|
70 | 70 | } |
71 | 71 | } |