original_string: private static function splitPathOnWildcard($path) {
      // On windows DIRECTORY_SEPARATOR is a '\' which we need to escape.
      $sep = addslashes(DIRECTORY_SEPARATOR);
      $pattern = sprintf(static::WILDCARD_PATTERN, $sep, $sep);
      if (preg_match($pattern, $path, $matches)) {
        return array_slice($matches, 1);
      }
      return false;
    }
code: private static function splitPathOnWildcard($path) {
      // On windows DIRECTORY_SEPARATOR is a '\' which we need to escape.
      $sep = addslashes(DIRECTORY_SEPARATOR);
      $pattern = sprintf(static::WILDCARD_PATTERN, $sep, $sep);
      if (preg_match($pattern, $path, $matches)) {
        return array_slice($matches, 1);
      }
      return false;
    }
code_tokens: private static function splitPathOnWildcard ( $ path ) { // On windows DIRECTORY_SEPARATOR is a '\' which we need to escape. $ sep = addslashes ( DIRECTORY_SEPARATOR ) ; $ pattern = sprintf ( static :: WILDCARD_PATTERN , $ sep , $ sep ) ; if ( preg_match ( $ pattern , $ path , $ matches ) ) { return array_slice ( $ matches , 1 ) ; } return false ; }
docstring: Look for shell wildcards in a path, if found split the path around the
  first wilcard segment.
  
  If there is a wilcard in the path then this method will return an array, as
  follows (note that the directory separator is not included in the matching
  wildcard segment):
  
  Input: '/foo/abc*xyz/bar/1?2/zoo'
  Output: [ '/foo/, 'abc*xyz', '/bar/1?2/zoo']
  
  @param string $path The path that may contain wildcards.
  @return array|boolean Returns an array of the split path, or false if there
  is no wildcard in the path.
docstring_tokens: Look for shell wildcards in a path if found split the path around the first wilcard segment .