@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | public function listToNameDictionary(array $packages) |
11 | 11 | { |
12 | 12 | return array_combine( |
13 | - array_map(function ($package) { |
|
13 | + array_map(function($package) { |
|
14 | 14 | return $package instanceof \Composer\Package\PackageInterface |
15 | 15 | ? $package->getName() |
16 | 16 | : $package['name']; |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $defaultType = gettype($default); |
25 | 25 | |
26 | 26 | return array_map( |
27 | - function (\Composer\Package\PackageInterface $package) use ($key, $default, $defaultType) { |
|
27 | + function(\Composer\Package\PackageInterface $package) use ($key, $default, $defaultType) { |
|
28 | 28 | $extra = $package->getExtra(); |
29 | 29 | |
30 | 30 | if (!$key) { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | $filter = $this->filterUtils->composeRegex($this->packages, '/'); |
43 | 43 | |
44 | - return array_filter($packages, function (PackageInterface $package) use ($filter) { |
|
44 | + return array_filter($packages, function(PackageInterface $package) use ($filter) { |
|
45 | 45 | return preg_match($filter, $package->getName()); |
46 | 46 | }); |
47 | 47 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | $allowedVendors = array_fill_keys($this->vendors, true); |
36 | - return array_filter($packages, function (PackageInterface $package) use ($allowedVendors) { |
|
36 | + return array_filter($packages, function(PackageInterface $package) use ($allowedVendors) { |
|
37 | 37 | return isset($allowedVendors[strtok($package->getName(), '/')]); |
38 | 38 | }); |
39 | 39 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | return (bool)array_filter( |
29 | 29 | $patches, |
30 | - function (array $patch) use ($muteTriggersMatcher) { |
|
30 | + function(array $patch) use ($muteTriggersMatcher) { |
|
31 | 31 | return array_filter( |
32 | 32 | array_intersect_key($patch, $muteTriggersMatcher) |
33 | 33 | ); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | { |
29 | 29 | $result = array_reduce( |
30 | 30 | $this->listSources, |
31 | - function ($result, PatchSourceListInterface $listSource) use ($repository) { |
|
31 | + function($result, PatchSourceListInterface $listSource) use ($repository) { |
|
32 | 32 | return array_merge($result, $listSource->getItems($repository)); |
33 | 33 | }, |
34 | 34 | array() |
@@ -219,7 +219,7 @@ |
||
219 | 219 | } |
220 | 220 | |
221 | 221 | $dependsConfig = array_reduce( |
222 | - array_map(function ($item) { |
|
222 | + array_map(function($item) { |
|
223 | 223 | $valueParts = explode(':', $item); |
224 | 224 | |
225 | 225 | return array( |
@@ -58,7 +58,7 @@ |
||
58 | 58 | |
59 | 59 | $processedPatches = array_reduce( |
60 | 60 | $this->listLoaders, |
61 | - function (array $patches, ListLoader $listLoader) use ($packages) { |
|
61 | + function(array $patches, ListLoader $listLoader) use ($packages) { |
|
62 | 62 | return $listLoader->process($patches, $packages); |
63 | 63 | }, |
64 | 64 | $patches |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | return $this->dataUtils->walkArrayNodes( |
25 | 25 | $patches, |
26 | - function (array $value) use ($dataUtils) { |
|
26 | + function(array $value) use ($dataUtils) { |
|
27 | 27 | return $dataUtils->removeKeysByPrefix($value, '_'); |
28 | 28 | } |
29 | 29 | ); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function process(array $patches, array $packagesByName) |
44 | 44 | { |
45 | - $rootPackages = array_filter($packagesByName, function ($package) { |
|
45 | + $rootPackages = array_filter($packagesByName, function($package) { |
|
46 | 46 | return $package instanceof \Composer\Package\RootPackage; |
47 | 47 | }); |
48 | 48 |