| Conditions | 4 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 96 | private static function deleteDir($dir) |
||
| 97 | { |
||
| 98 | $iterator = new RecursiveIteratorIterator( |
||
| 99 | new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS), |
||
| 100 | RecursiveIteratorIterator::CHILD_FIRST |
||
| 101 | ); |
||
| 102 | |||
| 103 | foreach ($iterator as $file) { |
||
| 104 | if ($file->isFile() || $file->isLink()) { |
||
| 105 | unlink($file); |
||
| 106 | } else { |
||
| 107 | rmdir($file); |
||
| 108 | } |
||
| 109 | } |
||
| 110 | |||
| 111 | rmdir($dir); |
||
| 112 | } |
||
| 113 | } |
||
| 114 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.