protected function resolveLocalGlobPath(array $files)
    {
        $absoluteFiles  = $this->resolveFullPath($files);
        $expandedFiles  = array();
        foreach ($absoluteFiles as $absoluteFile) {
            $globResult     = glob($absoluteFile);
            if (   empty($globResult)
                && stripos($absoluteFile, '*') === false
                && !file_exists($absoluteFile)
            ) {
                $expandedFiles[]    = $absoluteFile;
            } else {
                $expandedFiles  = array_merge($expandedFiles, $globResult);
            }
        }
        return $this->resolveLocalPath($expandedFiles);
    }
protected function resolveLocalGlobPath(array $files)
    {
        $absoluteFiles  = $this->resolveFullPath($files);
        $expandedFiles  = array();
        foreach ($absoluteFiles as $absoluteFile) {
            $globResult     = glob($absoluteFile);
            if (   empty($globResult)
                && stripos($absoluteFile, '*') === false
                && !file_exists($absoluteFile)
            ) {
                $expandedFiles[]    = $absoluteFile;
            } else {
                $expandedFiles  = array_merge($expandedFiles, $globResult);
            }
        }
        return $this->resolveLocalPath($expandedFiles);
    }
protected function resolveLocalGlobPath ( array $ files ) { $ absoluteFiles = $ this -> resolveFullPath ( $ files ) ; $ expandedFiles = array ( ) ; foreach ( $ absoluteFiles as $ absoluteFile ) { $ globResult = glob ( $ absoluteFile ) ; if ( empty ( $ globResult ) && stripos ( $ absoluteFile , '*' ) === false && ! file_exists ( $ absoluteFile ) ) { $ expandedFiles [ ] = $ absoluteFile ; } else { $ expandedFiles = array_merge ( $ expandedFiles , $ globResult ) ; } } return $ this -> resolveLocalPath ( $ expandedFiles ) ; }
Resolves an absolute path containing glob wildcards into a path relative to the repository path

@param   array       $files      The list of files
@return  array
Resolves an absolute path containing glob wildcards into a path relative to the repository path