| Conditions | 4 |
| Paths | 4 |
| Total Lines | 24 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 44 | public function getRecursiveFolders($folders) |
||
| 45 | { |
||
| 46 | |||
| 47 | $paths = []; |
||
| 48 | |||
| 49 | foreach ($folders as $folder) { |
||
| 50 | $iter = new Iterator( |
||
| 51 | new DirectoryIterator($folder, DirectoryIterator::SKIP_DOTS), |
||
| 52 | Iterator::SELF_FIRST, |
||
| 53 | Iterator::CATCH_GET_CHILD // Ignore "Permission denied" |
||
| 54 | ); |
||
| 55 | |||
| 56 | $subPaths = array($folder); |
||
| 57 | foreach ($iter as $path => $dir) { |
||
| 58 | if ($dir->isDir()) { |
||
| 59 | $subPaths[] = $path; |
||
| 60 | } |
||
| 61 | } |
||
| 62 | |||
| 63 | $paths = array_merge($paths, $subPaths); |
||
| 64 | } |
||
| 65 | |||
| 66 | return $paths; |
||
| 67 | } |
||
| 68 | |||
| 83 |
This check marks private properties in classes that are never used. Those properties can be removed.