Completed
Push — develop ( 7a9f67...89e0f3 )
by Christian
23s
created
src/N98/Magento/Command/SelfUpdateCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.