public static function downloadReleaseArchive(string $releaseName, string $version): bool
    {
        $archiveName = $releaseName . '.tar.gz';
        $archivePath = sprintf('%s/%s', Utilities::getBasePath(), $archiveName);
        $releaseUrl = sprintf(
            'https://github.com/editorconfig-checker/editorconfig-checker/releases/download/%s/%s',
            $version,
            $archiveName
        );

        $result = file_put_contents($archivePath, fopen($releaseUrl, 'r'));
        return $result > 0 || $result;
    }
public static function downloadReleaseArchive(string $releaseName, string $version): bool
    {
        $archiveName = $releaseName . '.tar.gz';
        $archivePath = sprintf('%s/%s', Utilities::getBasePath(), $archiveName);
        $releaseUrl = sprintf(
            'https://github.com/editorconfig-checker/editorconfig-checker/releases/download/%s/%s',
            $version,
            $archiveName
        );

        $result = file_put_contents($archivePath, fopen($releaseUrl, 'r'));
        return $result > 0 || $result;
    }
public static function downloadReleaseArchive ( string $ releaseName , string $ version ) : bool { $ archiveName = $ releaseName . '.tar.gz' ; $ archivePath = sprintf ( '%s/%s' , Utilities :: getBasePath ( ) , $ archiveName ) ; $ releaseUrl = sprintf ( 'https://github.com/editorconfig-checker/editorconfig-checker/releases/download/%s/%s' , $ version , $ archiveName ) ; $ result = file_put_contents ( $ archivePath , fopen ( $ releaseUrl , 'r' ) ) ; return $ result > 0 || $ result ; }
Downloads the release from the release page
Downloads the release from the release page