@@ -290,9 +290,9 @@ |
||
| 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 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -29,11 +29,11 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -32,8 +32,7 @@ |
||
| 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 | } |