| Conditions | 6 | 
| Paths | 4 | 
| Total Lines | 19 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 17 | public static function rglob($pattern = '*', $flags = 0, $path = '')  | 
            ||
| 18 |     { | 
            ||
| 19 |         if (!$path && ($dir = dirname($pattern)) != '.') { | 
            ||
| 20 |             if ($dir == '\\' || $dir == '/') { | 
            ||
| 21 | $dir = '';  | 
            ||
| 22 | }  | 
            ||
| 23 | |||
| 24 | return self::rglob(basename($pattern), $flags, $dir.'/');  | 
            ||
| 25 | }  | 
            ||
| 26 | |||
| 27 | $paths = glob($path.'*', GLOB_ONLYDIR | GLOB_NOSORT);  | 
            ||
| 28 | $files = glob($path.$pattern, $flags);  | 
            ||
| 29 | |||
| 30 |         foreach ($paths as $p) { | 
            ||
| 31 | $files = array_merge($files, self::rglob($pattern, $flags, $p.'/'));  | 
            ||
| 32 | }  | 
            ||
| 33 | |||
| 34 | return $files;  | 
            ||
| 35 | }  | 
            ||
| 36 | }  | 
            ||
| 37 |