| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public static function glob_recursive($pattern, $flags=0) { |
||
| 12 | $files=glob($pattern, $flags); |
||
| 13 | foreach ( glob(dirname($pattern) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir ) { |
||
| 14 | $files=array_merge($files, self::glob_recursive($dir . '/' . basename($pattern), $flags)); |
||
| 15 | } |
||
| 16 | return $files; |
||
| 17 | } |
||
| 18 | |||
| 46 | } |