@@ -32,9 +32,9 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | $resultPromise = $downloader->download($package, $destDir, null, false); |
| 35 | - $resultPromise->then(function ($path) use (&$patchData) { |
|
| 35 | + $resultPromise->then(function($path) use (&$patchData) { |
|
| 36 | 36 | $patchData[PatchDefinition::PATH] = $path; |
| 37 | - }, function (\Exception $exception) use ($source, $errorHandler, &$patchData, &$errors) { |
|
| 37 | + }, function(\Exception $exception) use ($source, $errorHandler, &$patchData, &$errors) { |
|
| 38 | 38 | try { |
| 39 | 39 | if (!$exception instanceof \Composer\Downloader\TransportException) { |
| 40 | 40 | throw $exception; |
@@ -98,13 +98,13 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | $promise = \React\Promise\all([$uninstallPromise, $downloadPromise]); |
| 100 | 100 | |
| 101 | - return $promise->then(static function () use ($installationManager, $installOperation, $repository, $package) { |
|
| 101 | + return $promise->then(static function() use ($installationManager, $installOperation, $repository, $package) { |
|
| 102 | 102 | $installPromise = $installationManager->install($repository, $installOperation); |
| 103 | 103 | if (!$installPromise) { |
| 104 | 104 | throw new OperationFailure(sprintf('Install of %s failed', $package->getName())); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - return $installPromise->then(static function () {}); |
|
| 107 | + return $installPromise->then(static function() {}); |
|
| 108 | 108 | }); |
| 109 | 109 | } |
| 110 | 110 | } |