Passed
Pull Request — master (#1156)
by Aleksei
19:33 queued 08:26
created
src/Cache/src/CacheRepository.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,8 @@  discard block
 block discarded – undo
36 36
 
37 37
         $value = $this->storage->get($key);
38 38
 
39
-        if ($value === null) {
39
+        if ($value === null)
40
+        {
40 41
             $this->dispatcher?->dispatch(new CacheMissed($key));
41 42
 
42 43
             return $default;
@@ -90,7 +91,8 @@  discard block
 block discarded – undo
90 91
     {
91 92
         $result = [];
92 93
 
93
-        foreach ($keys as $key) {
94
+        foreach ($keys as $key)
95
+        {
94 96
             $result[$key] = $this->get($key, $default);
95 97
         }
96 98
 
@@ -101,7 +103,8 @@  discard block
 block discarded – undo
101 103
     {
102 104
         $state = null;
103 105
 
104
-        foreach ($values as $key => $value) {
106
+        foreach ($values as $key => $value)
107
+        {
105 108
             $result = $this->set($key, $value, $ttl);
106 109
             $state = \is_null($state) ? $result : $result && $state;
107 110
         }
@@ -112,7 +115,8 @@  discard block
 block discarded – undo
112 115
     public function deleteMultiple(iterable $keys): bool
113 116
     {
114 117
         $state = null;
115
-        foreach ($keys as $key) {
118
+        foreach ($keys as $key)
119
+        {
116 120
             $result = $this->delete($key);
117 121
             $state = \is_null($state) ? $result : $result && $state;
118 122
         }
Please login to merge, or discard this patch.