original_string: protected final static function rglob($pattern, $flags = 0) {
  		$files = glob($pattern, $flags);
  		foreach (glob(dirname($pattern) . DIRECTORY_SEPARATOR . '*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir)
  			$files = array_merge(self::rglob($dir . DIRECTORY_SEPARATOR . basename($pattern), $flags), $files);
  		return $files;
  	}
code: protected final static function rglob($pattern, $flags = 0) {
  		$files = glob($pattern, $flags);
  		foreach (glob(dirname($pattern) . DIRECTORY_SEPARATOR . '*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir)
  			$files = array_merge(self::rglob($dir . DIRECTORY_SEPARATOR . basename($pattern), $flags), $files);
  		return $files;
  	}
code_tokens: protected final static function rglob ( $ pattern , $ flags = 0 ) { $ files = glob ( $ pattern , $ flags ) ; foreach ( glob ( dirname ( $ pattern ) . DIRECTORY_SEPARATOR . '*' , GLOB_ONLYDIR | GLOB_NOSORT ) as $ dir ) $ files = array_merge ( self :: rglob ( $ dir . DIRECTORY_SEPARATOR . basename ( $ pattern ) , $ flags ) , $ files ) ; return $ files ; }
docstring: Recursively gets files in path
  @param string $pattern
  @param byte $flags
  @return array
docstring_tokens: Recursively gets files in path