| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 49 | function findFiles($dir) |
||
| 50 | { |
||
| 51 | $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir), RecursiveIteratorIterator::CHILD_FIRST); |
||
| 52 | |||
| 53 | $files = array(); |
||
| 54 | foreach ($iterator as $path) { |
||
| 55 | if ($path->isFile()) { |
||
| 56 | $files[] = $path->getPath() . DIRECTORY_SEPARATOR . $path->getFilename(); |
||
| 57 | } |
||
| 58 | } |
||
| 59 | |||
| 60 | return $files; |
||
| 61 | } |