Completed
Push — v5 ( d83136...3408cd )
by Georges
02:36
created
src/phpFastCache/Drivers/Files/Driver.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -290,9 +290,9 @@
 block discarded – undo
290 290
         }
291 291
         
292 292
         $stat->setData(implode(', ', array_keys($this->itemInstances)))
293
-          ->setRawData($this->itemInstances)
294
-          ->setSize(Directory::dirSize($path))
295
-          ->setInfo('Number of files used to build the cache: ' . Directory::getFileCount($path));
293
+            ->setRawData($this->itemInstances)
294
+            ->setSize(Directory::dirSize($path))
295
+            ->setInfo('Number of files used to build the cache: ' . Directory::getFileCount($path));
296 296
 
297 297
         return $stat;
298 298
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             /*
77 77
              * Skip if Existing Caching in Options
78 78
              */
79
-            if (isset($option[ 'skipExisting' ]) && $option[ 'skipExisting' ] == true && file_exists($file_path)) {
79
+            if (isset($option['skipExisting']) && $option['skipExisting'] == true && file_exists($file_path)) {
80 80
                 $content = $this->readfile($file_path);
81 81
                 $old = $this->decode($content);
82 82
                 $toWrite = false;
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     public static function isValidOption($optionName, $optionValue)
223 223
     {
224 224
         parent::isValidOption($optionName, $optionValue);
225
-        switch($optionName)
225
+        switch ($optionName)
226 226
         {
227 227
             case 'path':
228 228
                 return is_string($optionValue);
Please login to merge, or discard this patch.
src/phpFastCache/Util/Directory.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
             /**
30 30
              * @var \SplFileInfo $file
31 31
              */
32
-            if($file->isFile())
32
+            if ($file->isFile())
33 33
             {
34 34
                 $size += filesize($file->getRealPath());
35 35
             }
36
-            else if($includeDirAllocSize)
36
+            else if ($includeDirAllocSize)
37 37
             {
38 38
                 $size += $file->getSize();
39 39
             }
@@ -50,11 +50,11 @@  discard block
 block discarded – undo
50 50
     {
51 51
         $count = 0;
52 52
         $objects = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path), \RecursiveIteratorIterator::SELF_FIRST);
53
-        foreach($objects as $object){
53
+        foreach ($objects as $object) {
54 54
             /**
55 55
              * @var \SplFileInfo $object
56 56
              */
57
-            if($object->isFile())
57
+            if ($object->isFile())
58 58
             {
59 59
                 $count++;
60 60
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
             if($file->isFile())
33 33
             {
34 34
                 $size += filesize($file->getRealPath());
35
-            }
36
-            else if($includeDirAllocSize)
35
+            } else if($includeDirAllocSize)
37 36
             {
38 37
                 $size += $file->getSize();
39 38
             }
Please login to merge, or discard this patch.