@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | // Wait till all the requests are finished. |
69 | 69 | (new EachPromise($promises, [ |
70 | 70 | 'concurrency' => 10, |
71 | - 'fulfilled' => function ($infoPackage) use (&$infoPackages) { |
|
71 | + 'fulfilled' => function($infoPackage) use (&$infoPackages) { |
|
72 | 72 | $infoPackages[] = $infoPackage; |
73 | 73 | }, |
74 | 74 | ]))->promise()->wait(); |
@@ -110,8 +110,8 @@ discard block |
||
110 | 110 | |
111 | 111 | $result = []; |
112 | 112 | foreach ($packages as $package) { |
113 | - $result[] = $this->httpClient->requestAsync('GET', $this->packagistUrl.'/p/'.$package->getName().'.json') |
|
114 | - ->then(function (ResponseInterface $response) { |
|
113 | + $result[] = $this->httpClient->requestAsync('GET', $this->packagistUrl.'/p/'.$package->getName().'.json') |
|
114 | + ->then(function(ResponseInterface $response) { |
|
115 | 115 | return json_decode($response->getBody(), true); |
116 | 116 | }); |
117 | 117 | } |