original_string: public static function globr($sDir, $sPattern, $nFlags = null)
      {
          if (($aFiles = \_glob("$sDir/$sPattern", $nFlags)) == false) {
              $aFiles = array();
          }
          if (($aDirs = \_glob("$sDir/*", GLOB_ONLYDIR)) != false) {
              foreach ($aDirs as $sSubDir) {
                  if (is_link($sSubDir)) {
                      continue;
                  }
  
                  $aSubFiles = self::globr($sSubDir, $sPattern, $nFlags);
                  $aFiles = array_merge($aFiles, $aSubFiles);
              }
          }
          sort($aFiles);
          return $aFiles;
      }
code: public static function globr($sDir, $sPattern, $nFlags = null)
      {
          if (($aFiles = \_glob("$sDir/$sPattern", $nFlags)) == false) {
              $aFiles = array();
          }
          if (($aDirs = \_glob("$sDir/*", GLOB_ONLYDIR)) != false) {
              foreach ($aDirs as $sSubDir) {
                  if (is_link($sSubDir)) {
                      continue;
                  }
  
                  $aSubFiles = self::globr($sSubDir, $sPattern, $nFlags);
                  $aFiles = array_merge($aFiles, $aSubFiles);
              }
          }
          sort($aFiles);
          return $aFiles;
      }
code_tokens: public static function globr ( $ sDir , $ sPattern , $ nFlags = null ) { if ( ( $ aFiles = \ _glob ( "$sDir/$sPattern" , $ nFlags ) ) == false ) { $ aFiles = array ( ) ; } if ( ( $ aDirs = \ _glob ( "$sDir/*" , GLOB_ONLYDIR ) ) != false ) { foreach ( $ aDirs as $ sSubDir ) { if ( is_link ( $ sSubDir ) ) { continue ; } $ aSubFiles = self :: globr ( $ sSubDir , $ sPattern , $ nFlags ) ; $ aFiles = array_merge ( $ aFiles , $ aSubFiles ) ; } } sort ( $ aFiles ) ; return $ aFiles ; }
docstring: Recursively find pathnames that match a pattern.
  
  See {@link http://php.net/manual/en/function.glob.php glob} for more info.
  
  @param string $sDir directory The directory to glob in.
  @param string $sPattern pattern The pattern to match paths against.
  @param int $nFlags `glob()` . See {@link http://php.net/manual/en/function.glob.php glob()}.
  @return array The list of paths that match the pattern.
  @api
docstring_tokens: Recursively find pathnames that match a pattern .