Completed
Push — V6 ( cefaa0...ddfc29 )
by Georges
03:27
created
src/phpFastCache/Core/Pool/IO/IOHelperTrait.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         if (!isset($this->tmp[ $full_pathx ]) || (!@file_exists($full_path) || !@is_writable($full_path))) {
76 76
             if (!@file_exists($full_path)) {
77 77
                 @mkdir($full_path, $this->setChmodAuto(), true);
78
-            }else if (!@is_writable($full_path)) {
78
+            } else if (!@is_writable($full_path)) {
79 79
                 @chmod($full_path, $this->setChmodAuto());
80 80
             }
81 81
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
             if(!rename($tmpFilename, $file)){
284 284
                 throw new phpFastCacheIOException(sprintf('Failed to rename %s to %s', $tmpFilename, $file));
285 285
             }
286
-        }else{
286
+        } else{
287 287
             $f = fopen($file, 'w+');
288 288
             $octetWritten = fwrite($f, $data);
289 289
             fclose($f);
Please login to merge, or discard this patch.