@@ -41,8 +41,8 @@ |
||
| 41 | 41 | $it = new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS); |
| 42 | 42 | $files = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST); |
| 43 | 43 | |
| 44 | - foreach($files as $file) { |
|
| 45 | - if ($file->isDir()){ |
|
| 44 | + foreach ($files as $file) { |
|
| 45 | + if ($file->isDir()) { |
|
| 46 | 46 | rmdir($file->getRealPath()); |
| 47 | 47 | } else { |
| 48 | 48 | unlink($file->getRealPath()); |