Completed
Push — v5 ( 6b59f3...1fb1de )
by Georges
02:45
created
src/phpFastCache/Drivers/Ssdb/Driver.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
             } else {
168 168
                 return true;
169 169
             }
170
-        }catch(SSDBException $e){
170
+        } catch(SSDBException $e){
171 171
             throw new phpFastCacheDriverException('Ssdb failed to connect with error: '. $e->getMessage(), 0 , $e);
172 172
         }
173 173
     }
Please login to merge, or discard this patch.
src/phpFastCache/Drivers/Xcache/Driver.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,8 +158,7 @@
 block discarded – undo
158 158
               ->setData(implode(', ', array_keys($this->itemInstances)))
159 159
               ->setInfo(sprintf("Xcache v%s with following modules loaded:\n %s", XCACHE_VERSION, str_replace(' ', ', ', XCACHE_MODULES)))
160 160
               ->setRawData($info);
161
-        }
162
-        else
161
+        } else
163 162
         {
164 163
             throw new \RuntimeException("PhpFastCache is not able to read Xcache configuration. Please put this to your php.ini:\n
165 164
             [xcache.admin]
Please login to merge, or discard this patch.
src/phpFastCache/Cache/ItemBaseTrait.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -273,7 +273,7 @@
 block discarded – undo
273 273
         
274 274
         if (!is_dir($path)) {
275 275
             throw new phpFastCacheDriverException("Can't read PATH:" . $path, 94);
276
-        }else{
276
+        } else{
277 277
             $size = Directory::dirSize($path);
278 278
         }
279 279
 
Please login to merge, or discard this patch.
src/phpFastCache/Core/StandardPsr6StructureTrait.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
                          * getItem() call in delete() method
66 66
                          */
67 67
                         $this->driverDelete($item);
68
-                    }else{
68
+                    } else{
69 69
                         $item->setHit(true);
70 70
                     }
71 71
                 }
Please login to merge, or discard this patch.
tests/Psr6InterfaceImplements.test.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
 if (!is_object($driverInstance)) {
24 24
     echo '[FAIL] CacheManager::getInstance() returned an invalid variable type:' . gettype($driverInstance) . "\n";
25 25
     $status = 1;
26
-}else if(!($driverInstance instanceof CacheItemPoolInterface)){
26
+} else if(!($driverInstance instanceof CacheItemPoolInterface)){
27 27
     echo '[FAIL] CacheManager::getInstance() returned an invalid class:' . get_class($driverInstance) . "\n";
28 28
     $status = 1;
29
-}else{
29
+} else{
30 30
     echo '[PASS] CacheManager::getInstance() returned a valid CacheItemPoolInterface object: ' . get_class($driverInstance) . "\n";
31 31
 }
32 32
 
Please login to merge, or discard this patch.