@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | return array_combine( |
| 13 | 13 | array_map( |
| 14 | - function ($package) { |
|
| 14 | + function($package) { |
|
| 15 | 15 | return $package instanceof \Composer\Package\PackageInterface |
| 16 | 16 | ? $package->getName() |
| 17 | 17 | : $package['name']; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $defaultType = gettype($default); |
| 28 | 28 | |
| 29 | 29 | return array_map( |
| 30 | - function (\Composer\Package\PackageInterface $package) use ($key, $default, $defaultType) { |
|
| 30 | + function(\Composer\Package\PackageInterface $package) use ($key, $default, $defaultType) { |
|
| 31 | 31 | $extra = $package->getExtra(); |
| 32 | 32 | |
| 33 | 33 | if (!$key) { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | return array_filter( |
| 45 | 45 | $packages, |
| 46 | - function (PackageInterface $package) use ($filter) { |
|
| 46 | + function(PackageInterface $package) use ($filter) { |
|
| 47 | 47 | return preg_match($filter, $package->getName()); |
| 48 | 48 | } |
| 49 | 49 | ); |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | public static function composePath() |
| 11 | 11 | { |
| 12 | 12 | $pathSegments = array_map( |
| 13 | - function ($item) { |
|
| 13 | + function($item) { |
|
| 14 | 14 | return rtrim($item, DIRECTORY_SEPARATOR); |
| 15 | 15 | }, |
| 16 | 16 | func_get_args() |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $downloader = $this->fileDownloader; |
| 93 | 93 | |
| 94 | 94 | $this->consoleSilencer->applyToCallback( |
| 95 | - function () use ($downloader, $package, $destinationFolder) { |
|
| 95 | + function() use ($downloader, $package, $destinationFolder) { |
|
| 96 | 96 | $downloader->download($package, $destinationFolder, false); |
| 97 | 97 | } |
| 98 | 98 | ); |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | $installer = $this->installationManager; |
| 65 | 65 | |
| 66 | 66 | $this->consoleSilencer->applyToCallback( |
| 67 | - function () use ($installer, $repository, $operation) { |
|
| 67 | + function() use ($installer, $repository, $operation) { |
|
| 68 | 68 | $installer->install($repository, $operation); |
| 69 | 69 | } |
| 70 | 70 | ); |