Remove short array syntax for PHP 5.3 compatibility

This commit is contained in:
Zach Borboa
2021-04-29 10:13:19 -04:00
parent 45db373722
commit 7865d3d76a
+3 -3
View File
@@ -346,12 +346,12 @@ class Curl
public function _fastDownload($url, $filename, $connections = 4) {
// First we need to retrive the 'Content-Length' header.
// Use GET because not all hosts support HEAD requests.
$this->setOpts([
$this->setOpts(array(
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_NOBODY => true,
CURLOPT_HEADER => true,
CURLOPT_ENCODING => '',
]);
));
$this->setUrl($url);
$this->exec();
@@ -371,7 +371,7 @@ class Curl
$nextChunk = $chunkSize;
// We need this later.
$file_parts = [];
$file_parts = array();
$multi_curl = new MultiCurl();
$multi_curl->setConcurrency($connections);