Completed
Push — 2.0 ( 1bf2af...b5e900 )
by Marco
04:04
created
src/Comodojo/Cache/Drivers/Memory.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -156,12 +156,10 @@
 block discarded – undo
156 156
         $time = new DateTime('now');
157 157
 
158 158
         if ( !array_key_exists($namespace, $this->data)
159
-            || !array_key_exists($key, $this->data[$namespace]) )
160
-        {
159
+            || !array_key_exists($key, $this->data[$namespace]) ) {
161 160
             return false;
162 161
         } else if ( $this->data[$namespace][$key]['expire'] === 0
163
-            || $this->data[$namespace][$key]['expire'] > $time )
164
-        {
162
+            || $this->data[$namespace][$key]['expire'] > $time ) {
165 163
             return true;
166 164
         } else {
167 165
             unset($this->data[$namespace][$key]);
Please login to merge, or discard this patch.