@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $patternsWithResults = array_filter( |
| 13 | 13 | $failureMessages, |
| 14 | - function ($pattern) use ($output) { |
|
| 14 | + function($pattern) use ($output) { |
|
| 15 | 15 | return $pattern && preg_match($pattern, $output); |
| 16 | 16 | } |
| 17 | 17 | ); |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | } |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - return array_map(function (array $items) { |
|
| 102 | + return array_map(function(array $items) { |
|
| 103 | 103 | $filteredItems = array_filter($items); |
| 104 | 104 | |
| 105 | 105 | if (isset($filteredItems['']) && count($filteredItems) > 1) { |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $paths = $this->collectPathsRecursively($rootPath, $pattern); |
| 13 | 13 | |
| 14 | - return array_filter($paths, function ($item) { |
|
| 14 | + return array_filter($paths, function($item) { |
|
| 15 | 15 | return is_file($item); |
| 16 | 16 | }); |
| 17 | 17 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | { |
| 27 | 27 | return (bool)array_filter( |
| 28 | 28 | $this->namespacesExtractor->getConfig($package, ''), |
| 29 | - function ($item) use ($namespace) { |
|
| 29 | + function($item) use ($namespace) { |
|
| 30 | 30 | return $item && strpos($namespace, rtrim($item, '\\')) === 0; |
| 31 | 31 | } |
| 32 | 32 | ); |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | $output = ''; |
| 47 | 47 | |
| 48 | - $outputHandler = function ($type, $data) use ($logger, &$output) { |
|
| 48 | + $outputHandler = function($type, $data) use ($logger, &$output) { |
|
| 49 | 49 | $output .= $data; |
| 50 | 50 | $logger->writeVerbose('comment', trim($data)); |
| 51 | 51 | }; |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | $installationManager = $composer->getInstallationManager(); |
| 158 | 158 | |
| 159 | 159 | $result = $runtimeUtils->executeWithPostAction( |
| 160 | - function () use ($shouldUndo, $filters, $bootstrap, $isDevMode) { |
|
| 160 | + function() use ($shouldUndo, $filters, $bootstrap, $isDevMode) { |
|
| 161 | 161 | if ($shouldUndo && !array_filter($filters)) { |
| 162 | 162 | $bootstrap->stripPatches($isDevMode); |
| 163 | 163 | |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | return $bootstrap->applyPatches($isDevMode); |
| 168 | 168 | }, |
| 169 | - function () use ($installationManager, $repository, $lockSanitizer, $isDevMode, $compatExecutor) { |
|
| 169 | + function() use ($installationManager, $repository, $lockSanitizer, $isDevMode, $compatExecutor) { |
|
| 170 | 170 | $compatExecutor->repositoryWrite($repository, $installationManager, $isDevMode); |
| 171 | 171 | $lockSanitizer->sanitize(); |
| 172 | 172 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $failureMessages = $this->extractArrayValue($applierConfig, PluginConfig::PATCHER_FAILURES); |
| 79 | 79 | $sanityOperations = $this->extractArrayValue($applierConfig, PluginConfig::PATCHER_SANITY); |
| 80 | 80 | |
| 81 | - $operations = array_filter($operations, function ($item) { |
|
| 81 | + $operations = array_filter($operations, function($item) { |
|
| 82 | 82 | return $item !== false; |
| 83 | 83 | }); |
| 84 | 84 | |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | $downloader = $this->fileDownloader; |
| 111 | 111 | |
| 112 | 112 | $this->consoleSilencer->applyToCallback( |
| 113 | - function () use ( |
|
| 113 | + function() use ( |
|
| 114 | 114 | $errorHandler, |
| 115 | 115 | $downloader, |
| 116 | 116 | $compExecutor, |
@@ -27,9 +27,9 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | $resultPromise = $downloader->download($package, $destDir, null, false); |
| 30 | - $resultPromise->then(function ($path) use (&$patchData) { |
|
| 30 | + $resultPromise->then(function($path) use (&$patchData) { |
|
| 31 | 31 | $patchData[PatchDefinition::PATH] = $path; |
| 32 | - }, function (\Exception $exception) use ($source, $errorHandler, &$patchData, &$errors) { |
|
| 32 | + }, function(\Exception $exception) use ($source, $errorHandler, &$patchData, &$errors) { |
|
| 33 | 33 | try { |
| 34 | 34 | if (!$exception instanceof \Composer\Downloader\TransportException) { |
| 35 | 35 | throw $exception; |