private static function convertDistEntry(array &$value, $type, $url)
    {
        $httpPrefix = 'http://';

        if (0 === strpos($url, $httpPrefix)) {
            $url = 'https://'.substr($url, \strlen($httpPrefix));
        }

        if ('shasum' === $type) {
            $value[$type] = $url;
        } elseif ('tarball' === $type) {
            $value['type'] = 'tar';
            $value['url'] = $url;
        } elseif (\in_array($type, self::getDownloaderTypes(), true)) {
            $value['type'] = $type;
            $value['url'] = $url;
        }
    }