protected static function expandFileList($archiveFiles, $files)
    {
        $newFiles = [];
        foreach ($files as $file) {
            foreach ($archiveFiles as $archiveFile) {
                if (fnmatch($file.'*', $archiveFile))
                    $newFiles[] = $archiveFile;
            }
        }
        return $newFiles;
    }
protected static function expandFileList($archiveFiles, $files)
    {
        $newFiles = [];
        foreach ($files as $file) {
            foreach ($archiveFiles as $archiveFile) {
                if (fnmatch($file.'*', $archiveFile))
                    $newFiles[] = $archiveFile;
            }
        }
        return $newFiles;
    }
protected static function expandFileList ( $ archiveFiles , $ files ) { $ newFiles = [ ] ; foreach ( $ files as $ file ) { foreach ( $ archiveFiles as $ archiveFile ) { if ( fnmatch ( $ file . '*' , $ archiveFile ) ) $ newFiles [ ] = $ archiveFile ; } } return $ newFiles ; }
Expands files list
@param $archiveFiles
@param $files
@return array
Expands files list