| Conditions | 6 |
| Paths | 6 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | protected function removeRegisteredFiles() |
||
| 34 | { |
||
| 35 | foreach ($this->createdFiles as $path) { |
||
| 36 | if (is_dir($path)) { |
||
| 37 | $dir = new \DirectoryIterator($path); |
||
| 38 | |||
| 39 | foreach ($dir as $file) { |
||
| 40 | if (!$file->isDot()) { |
||
| 41 | unlink($file->getPathname()); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | rmdir($path); |
||
| 46 | } elseif (file_exists($path)) { |
||
| 47 | unlink($path); |
||
| 48 | } |
||
| 52 |