@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | ); |
144 | 144 | |
145 | 145 | // Check if the requested file exists via HEAD |
146 | - $existsCheck = CurlClient::curlHead($remotePharDownloadUrl); |
|
146 | + $existsCheck = CurlClient::curlHead($remotePharDownloadUrl); |
|
147 | 147 | if (!$existsCheck->success) { |
148 | 148 | throw new RuntimeException( |
149 | 149 | sprintf('Requested version "%s" could not be found at %s', $requestedVersion, $remotePharDownloadUrl) |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | */ |
377 | 377 | private function getRemoteFileSize(OutputInterface $output, string $remoteUrl): int |
378 | 378 | { |
379 | - $head = CurlClient::curlHead($remoteUrl, [], [ |
|
379 | + $head = CurlClient::curlHead($remoteUrl, [], [ |
|
380 | 380 | 'timeout' => 20, |
381 | 381 | 'connect_timeout' => 10, |
382 | 382 | ]); |
@@ -426,7 +426,7 @@ discard block |
||
426 | 426 | private function performDownload(string $remoteUrl, string $tempFilename, ProgressBar $progress, array $requestOpts) |
427 | 427 | { |
428 | 428 | // Create a progress callback for curl |
429 | - $progressCallback = function($curlResource, $downloadSize, $downloaded, $uploadSize, $uploaded) use ($progress) { |
|
429 | + $progressCallback = function ($curlResource, $downloadSize, $downloaded, $uploadSize, $uploaded) use ($progress) { |
|
430 | 430 | if ($downloadSize > 0 && $progress->getMaxSteps() > 0) { |
431 | 431 | $progress->setProgress($downloaded); |
432 | 432 | } elseif ($downloaded > 0) { |