Passed
Pull Request — master (#1156)
by
unknown
11:22
created
src/Cache/src/CacheRepository.php 1 patch
Braces   +10 added lines, -5 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;
@@ -88,7 +89,8 @@  discard block
 block discarded – undo
88 89
     {
89 90
         $result = [];
90 91
 
91
-        foreach ($keys as $key) {
92
+        foreach ($keys as $key)
93
+        {
92 94
             $result[$key] = $this->get($key, $default);
93 95
         }
94 96
 
@@ -99,7 +101,8 @@  discard block
 block discarded – undo
99 101
     {
100 102
         $state = null;
101 103
 
102
-        foreach ($values as $key => $value) {
104
+        foreach ($values as $key => $value)
105
+        {
103 106
             $result = $this->set($key, $value, $ttl);
104 107
             $state = \is_null($state) ? $result : $result && $state;
105 108
         }
@@ -110,7 +113,8 @@  discard block
 block discarded – undo
110 113
     public function deleteMultiple(iterable $keys): bool
111 114
     {
112 115
         $state = null;
113
-        foreach ($keys as $key) {
116
+        foreach ($keys as $key)
117
+        {
114 118
             $result = $this->delete($key);
115 119
             $state = \is_null($state) ? $result : $result && $state;
116 120
         }
@@ -130,7 +134,8 @@  discard block
 block discarded – undo
130 134
 
131 135
     private function resolveKey(string $key): string
132 136
     {
133
-        if (!empty($this->prefix)) {
137
+        if (!empty($this->prefix))
138
+        {
134 139
             return $this->prefix . $key;
135 140
         }
136 141
 
Please login to merge, or discard this patch.