Completed
Push — master ( db8b7d...d316c3 )
by Dominik
01:53
created
src/StorageCache/ArrayStorageCache.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\Model\Cache;
6 6
 
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
     /**
10 10
      * @var array
11 11
      */
12
-    private $cache = [];
12
+    private $cache = [ ];
13 13
 
14 14
     /**
15 15
      * @param string $id
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function set(string $id, array $entry): EntryCacheInterface
21 21
     {
22
-        $this->cache[$id] = $entry;
22
+        $this->cache[ $id ] = $entry;
23 23
 
24 24
         return $this;
25 25
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             throw EntryNotFoundException::fromId($id);
48 48
         }
49 49
 
50
-        return $this->cache[$id];
50
+        return $this->cache[ $id ];
51 51
     }
52 52
 
53 53
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function remove(string $id): EntryCacheInterface
59 59
     {
60
-        unset($this->cache[$id]);
60
+        unset($this->cache[ $id ]);
61 61
 
62 62
         return $this;
63 63
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function clear(): EntryCacheInterface
69 69
     {
70
-        $this->cache = [];
70
+        $this->cache = [ ];
71 71
 
72 72
         return $this;
73 73
     }
Please login to merge, or discard this patch.