@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
67 | 67 | */ |
68 | 68 | public function clear(): EntryCacheInterface |
69 | 69 | { |
70 | - $this->cache = []; |
|
70 | + $this->cache = [ ]; |
|
71 | 71 | |
72 | 72 | return $this; |
73 | 73 | } |