@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | */ |
183 | 183 | protected function getMajorVersion() |
184 | 184 | { |
185 | - list($majorVersion, , ) = $this->getSemanticVersioning(); |
|
185 | + list($majorVersion,,) = $this->getSemanticVersioning(); |
|
186 | 186 | |
187 | 187 | return $majorVersion; |
188 | 188 | } |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | protected function getMinorVersion() |
194 | 194 | { |
195 | - list(, $minorVersion, ) = $this->getSemanticVersioning(); |
|
195 | + list(, $minorVersion,) = $this->getSemanticVersioning(); |
|
196 | 196 | |
197 | 197 | return $minorVersion; |
198 | 198 | } |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | protected function getPatchVersion() |
204 | 204 | { |
205 | - list(, , $patchVersion) = $this->getSemanticVersioning(); |
|
205 | + list(,, $patchVersion) = $this->getSemanticVersioning(); |
|
206 | 206 | |
207 | 207 | return $patchVersion; |
208 | 208 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | $report[] = $row; |
57 | 57 | } |
58 | 58 | |
59 | - $jsonReport = defined('JSON_PRETTY_PRINT') ? json_encode($report, JSON_PRETTY_PRINT) : json_encode($report); |
|
59 | + $jsonReport = defined('JSON_PRETTY_PRINT') ? json_encode($report, JSON_PRETTY_PRINT) : json_encode($report); |
|
60 | 60 | $out->writeln($jsonReport); |
61 | 61 | } |
62 | 62 | } |
@@ -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 | } |