private static function isFileNamePatternMatch($name, $pattern, $options) {
    if (in_array($name, static::$excluded_file_names)) {
      return false;
    }

    $fnmatch_flags = 0;
    if ($options & GLOB_NOESCAPE) {
      $fnmatch_flags |= FNM_NOESCAPE;
    }

    return fnmatch($pattern, $name, $fnmatch_flags);
  }
private static function isFileNamePatternMatch($name, $pattern, $options) {
    if (in_array($name, static::$excluded_file_names)) {
      return false;
    }

    $fnmatch_flags = 0;
    if ($options & GLOB_NOESCAPE) {
      $fnmatch_flags |= FNM_NOESCAPE;
    }

    return fnmatch($pattern, $name, $fnmatch_flags);
  }
private static function isFileNamePatternMatch ( $ name , $ pattern , $ options ) { if ( in_array ( $ name , static :: $ excluded_file_names ) ) { return false ; } $ fnmatch_flags = 0 ; if ( $ options & GLOB_NOESCAPE ) { $ fnmatch_flags |= FNM_NOESCAPE ; } return fnmatch ( $ pattern , $ name , $ fnmatch_flags ) ; }
Check if a file name matches the specified glob pattern.

@param string $name The file name
@param string $pattern The pattern to match against.
@param int $options The flags passed to glob().
@return boolean True if there is a match, false otherwise.
Check if a file name matches the specified glob pattern .