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;
        }
    }
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;
        }
    }
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 ; } }
Convert the each entry of dist section.

@param array  $value The result
@param string $type  The dist type
@param string $url   The dist url
Convert the each entry of dist section .