Completed
Push — final ( ab27cf...b90978 )
by Georges
02:36 queued 02:33
created
src/phpFastCache/Util/Directory.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,8 +85,7 @@  discard block
 block discarded – undo
85 85
             return unlink($source);
86 86
         }
87 87
 
88
-        $files = new RecursiveIteratorIterator
89
-        (
88
+        $files = new RecursiveIteratorIterator(
90 89
           new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS),
91 90
           RecursiveIteratorIterator::CHILD_FIRST
92 91
         );
@@ -99,7 +98,7 @@  discard block
 block discarded – undo
99 98
                 if (self::rrmdir($fileinfo->getRealPath()) === false) {
100 99
                     return false;
101 100
                 }
102
-            } else if(unlink($fileinfo->getRealPath()) === false) {
101
+            } else if (unlink($fileinfo->getRealPath()) === false) {
103 102
                 return false;
104 103
             }
105 104
         }
@@ -136,7 +135,7 @@  discard block
 block discarded – undo
136 135
         /**
137 136
          * Allows to dereference char
138 137
          */
139
-        $__FILE__ = preg_replace('~^(([a-z0-9\-]+)://)~', '', __FILE__);// remove file protocols such as "phar://" etc.
138
+        $__FILE__ = preg_replace('~^(([a-z0-9\-]+)://)~', '', __FILE__); // remove file protocols such as "phar://" etc.
140 139
         $prefix = $__FILE__[0] === DIRECTORY_SEPARATOR ? DIRECTORY_SEPARATOR : '';
141 140
         return $prefix . implode(DIRECTORY_SEPARATOR, $absolutes);
142 141
     }
Please login to merge, or discard this patch.