Passed
Push — master ( c5f4fa...dd2f97 )
by butschster
07:03
created
src/Session/tests/CacheHandlerTest.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
 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
     {
Please login to merge, or discard this patch.
src/Session/src/Handler/CacheHandler.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.