@@ -76,13 +76,13 @@ |
||
76 | 76 | private function setDownloadWithProgressBar() |
77 | 77 | { |
78 | 78 | $emitter = $this->httpClient->getEmitter(); |
79 | - $emitter->on('before', function (\GuzzleHttp\Event\BeforeEvent $event) { |
|
79 | + $emitter->on('before', function(\GuzzleHttp\Event\BeforeEvent $event) { |
|
80 | 80 | echo $event->getRequest(); |
81 | 81 | }); |
82 | - $emitter->once('progress', function (\GuzzleHttp\Event\ProgressEvent $event) { |
|
82 | + $emitter->once('progress', function(\GuzzleHttp\Event\ProgressEvent $event) { |
|
83 | 83 | $this->progressBar->start($event->downloadSize); |
84 | 84 | }); |
85 | - $emitter->on('progress', function (\GuzzleHttp\Event\ProgressEvent $event) { |
|
85 | + $emitter->on('progress', function(\GuzzleHttp\Event\ProgressEvent $event) { |
|
86 | 86 | $this->progressBar->setProgress($event->downloaded); |
87 | 87 | }); |
88 | 88 | } |