@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $repository = $composer->getRepositoryManager()->getLocalRepository(); |
194 | 194 | |
195 | 195 | $result = $runtimeUtils->executeWithPostAction( |
196 | - function () use ($shouldUndo, $filters, $bootstrap, $isDevMode) { |
|
196 | + function() use ($shouldUndo, $filters, $bootstrap, $isDevMode) { |
|
197 | 197 | if ($shouldUndo && !array_filter($filters)) { |
198 | 198 | $bootstrap->stripPatches($isDevMode); |
199 | 199 | |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | |
203 | 203 | return $bootstrap->applyPatches($isDevMode); |
204 | 204 | }, |
205 | - function () use ($repository, $lockSanitizer) { |
|
205 | + function() use ($repository, $lockSanitizer) { |
|
206 | 206 | $repository->write(); |
207 | 207 | $lockSanitizer->sanitize(); |
208 | 208 | } |
@@ -94,10 +94,10 @@ |
||
94 | 94 | $runtimeUtils = new \Vaimo\ComposerPatches\Utils\RuntimeUtils(); |
95 | 95 | |
96 | 96 | $result = $runtimeUtils->executeWithPostAction( |
97 | - function () use ($bootstrap, $event) { |
|
97 | + function() use ($bootstrap, $event) { |
|
98 | 98 | return $bootstrap->applyPatches($event->isDevMode()); |
99 | 99 | }, |
100 | - function () use ($event, $lockSanitizer) { |
|
100 | + function() use ($event, $lockSanitizer) { |
|
101 | 101 | $repository = $event->getComposer()->getRepositoryManager()->getLocalRepository(); |
102 | 102 | |
103 | 103 | $repository->write(); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | public function composePath() |
11 | 11 | { |
12 | - $pathSegments = array_map(function ($item) { |
|
12 | + $pathSegments = array_map(function($item) { |
|
13 | 13 | return rtrim($item, DIRECTORY_SEPARATOR); |
14 | 14 | }, func_get_args()); |
15 | 15 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $allowedVendors = array_fill_keys($this->vendors, true); |
37 | 37 | return array_filter( |
38 | 38 | $packages, |
39 | - function (PackageInterface $package) use ($allowedVendors) { |
|
39 | + function(PackageInterface $package) use ($allowedVendors) { |
|
40 | 40 | $vendorName = strtok($package->getName(), ComposerConstants::PACKAGE_SEPARATOR); |
41 | 41 | |
42 | 42 | return isset($allowedVendors[$vendorName]); |