protected static function downloadFile($url)
    {
        $options = array(
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_TIMEOUT        => 600,
            CURLOPT_URL            => $url,
        );

        $curl = curl_init();
        curl_setopt_array($curl, $options);
        $result = curl_exec($curl);
        curl_close($curl);

        return $result;
    }
protected static function downloadFile($url)
    {
        $options = array(
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_TIMEOUT        => 600,
            CURLOPT_URL            => $url,
        );

        $curl = curl_init();
        curl_setopt_array($curl, $options);
        $result = curl_exec($curl);
        curl_close($curl);

        return $result;
    }
protected static function downloadFile ( $ url ) { $ options = array ( CURLOPT_RETURNTRANSFER => true , CURLOPT_TIMEOUT => 600 , CURLOPT_URL => $ url , ) ; $ curl = curl_init ( ) ; curl_setopt_array ( $ curl , $ options ) ; $ result = curl_exec ( $ curl ) ; curl_close ( $ curl ) ; return $ result ; }
Download a file from an URL.

@since 0.1.0

@return string Downloaded file contents.
Download a file from an URL .