Passed
Push — master ( c98246...fc36d7 )
by Allan
03:42 queued 01:04
created
src/Package/ConfigAnalyser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Shell.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
         };
Please login to merge, or discard this patch.
src/Composer/Commands/PatchCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Patch/File/Applier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Patch/DefinitionList/LoaderComponents/DownloaderComponent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Plugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,10 +107,10 @@
 block discarded – undo
107 107
         $bootstrap = $this->bootstrap;
108 108
 
109 109
         $result = $runtimeUtils->executeWithPostAction(
110
-            function () use ($bootstrap, $event) {
110
+            function() use ($bootstrap, $event) {
111 111
                 return $bootstrap->applyPatches($event->isDevMode());
112 112
             },
113
-            function () use ($event, $lockSanitizer, $compExecutor) {
113
+            function() use ($event, $lockSanitizer, $compExecutor) {
114 114
                 $repository = $event->getComposer()->getRepositoryManager()->getLocalRepository();
115 115
                 $installationManager = $event->getComposer()->getInstallationManager();
116 116
                 $compExecutor->repositoryWrite($repository, $installationManager, $event->isDevMode());
Please login to merge, or discard this patch.
src/Console/OutputAnalyser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public function scanOutputForFailures($output, $separatorMatcher, array $failureMessages)
11 11
     {
12
-        $patternsWithResults = array_filter($failureMessages, function ($pattern) use ($output) {
12
+        $patternsWithResults = array_filter($failureMessages, function($pattern) use ($output) {
13 13
             return $pattern && preg_match($pattern, $output);
14 14
         });
15 15
 
Please login to merge, or discard this patch.
src/Managers/RepositoryManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         $compExecutor = $this->compExecutor;
69 69
         $installationManager = $this->installationManager;
70 70
         return $this->consoleSilencer->applyToCallback(
71
-            function () use ($compExecutor, $installationManager, $repository, $operation) {
71
+            function() use ($compExecutor, $installationManager, $repository, $operation) {
72 72
                 return $compExecutor->processReinstallOperation($repository, $installationManager, $operation);
73 73
             }
74 74
         );
Please login to merge, or discard this patch.
src/Compatibility/Executor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
         }
31 31
 
32 32
         $resultPromise = $downloader->download($package, $destDir, null, false);
33
-        $resultPromise->then(function ($path) use (&$patchData) {
33
+        $resultPromise->then(function($path) use (&$patchData) {
34 34
             $patchData[PatchDefinition::PATH] = $path;
35
-        }, function (\Exception $exception) use ($source, $errorHandler, &$patchData, &$errors) {
35
+        }, function(\Exception $exception) use ($source, $errorHandler, &$patchData, &$errors) {
36 36
             try {
37 37
                 if (!$exception instanceof \Composer\Downloader\TransportException) {
38 38
                     throw $exception;
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
         return $installer
87 87
             ->download($package)
88
-            ->then(function () use ($installationManager, $operation, $repository) {
88
+            ->then(function() use ($installationManager, $operation, $repository) {
89 89
                 $installationManager->install($repository, $operation);
90 90
             });
91 91
     }
Please login to merge, or discard this patch.