Completed
Push — V6 ( 6bfaa5...2f3d58 )
by Georges
03:19
created
src/phpFastCache/Helper/TestHelper.php 1 patch
Braces   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         if(!$strtoupper){
113 113
             print trim($string) . PHP_EOL;
114
-        }else{
114
+        } else{
115 115
             print strtoupper(trim($string) . PHP_EOL);
116 116
         }
117 117
 
@@ -125,8 +125,7 @@  discard block
 block discarded – undo
125 125
     {
126 126
         if (substr(php_uname(), 0, 7) === 'Windows'){
127 127
             pclose(popen('start /B '. $cmd, 'r'));
128
-        }
129
-        else {
128
+        } else {
130 129
             exec($cmd . ' > /dev/null &');
131 130
         }
132 131
     }
Please login to merge, or discard this patch.
src/phpFastCache/Core/Pool/CacheItemPoolTrait.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                         } else {
165 165
                             $item->setHit(true);
166 166
                         }
167
-                    }else{
167
+                    } else{
168 168
                         $item->expiresAfter(abs((int) $this->getConfig()[ 'defaultTtl' ]));
169 169
                     }
170 170
                 }
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     {
360 360
         if (!array_key_exists($item->getKey(), $this->itemInstances)) {
361 361
             $this->itemInstances[ $item->getKey() ] = $item;
362
-        }else if(spl_object_hash($item) !== spl_object_hash($this->itemInstances[ $item->getKey() ])){
362
+        } else if(spl_object_hash($item) !== spl_object_hash($this->itemInstances[ $item->getKey() ])){
363 363
             throw new \RuntimeException('Spl object hash mismatches ! You probably tried to save a detached item which has been already retrieved from cache.');
364 364
         }
365 365
 
Please login to merge, or discard this patch.
src/phpFastCache/Entities/ItemBatch.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         if(is_string($itemKey)){
43 43
             $this->itemKey = $itemKey;
44 44
             $this->itemDate = $itemDate;
45
-        }else{
45
+        } else{
46 46
             throw new phpFastCacheInvalidArgumentException(sprintf('$itemKey must be a string, got "%s" instead', gettype($itemKey)));
47 47
         }
48 48
     }
Please login to merge, or discard this patch.