Completed
Push — v5 ( d83136...3408cd )
by Georges
02:36
created
src/phpFastCache/Drivers/Files/Driver.php 1 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 1 patch
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.