@@ -149,7 +149,7 @@ |
||
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | return array_map( |
| 152 | - function ($package) { |
|
| 152 | + function($package) { |
|
| 153 | 153 | /** @var PackageInterface $package */ |
| 154 | 154 | return $package->getName(); |
| 155 | 155 | }, |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | */ |
| 157 | 157 | private function filterBaseDir($paths, $baseDirs) |
| 158 | 158 | { |
| 159 | - return array_filter($paths, function ($path) use ($baseDirs) { |
|
| 159 | + return array_filter($paths, function($path) use ($baseDirs) { |
|
| 160 | 160 | foreach ($baseDirs as $baseDir) { |
| 161 | 161 | if (substr($baseDir, 0, strlen($path)) === $path) { |
| 162 | 162 | return true; |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | $this->file->set('log', $logFile); |
| 159 | 159 | |
| 160 | 160 | $this->setStatus(self::STATE_RUNNING); |
| 161 | - $this->addOutput('Task ' . $this->getId() . ' started.' . "\n"); |
|
| 161 | + $this->addOutput('Task ' . $this->getId() . ' started.' . "\n"); |
|
| 162 | 162 | |
| 163 | 163 | $this->doPerform(); |
| 164 | 164 | } catch (\Exception $exception) { |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | * |
| 98 | 98 | * @param \Closure $composerFactory The new factory function. |
| 99 | 99 | * |
| 100 | - * @return RequireCommand |
|
| 100 | + * @return WrappedCommandTrait |
|
| 101 | 101 | */ |
| 102 | 102 | public function setComposerFactory($composerFactory) |
| 103 | 103 | { |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | /** @var WrappedCommandTrait $command */ |
| 88 | 88 | $command->setComposerFactory( |
| 89 | - function () { |
|
| 89 | + function() { |
|
| 90 | 90 | return Factory::create($this->getIO()); |
| 91 | 91 | } |
| 92 | 92 | ); |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | * |
| 77 | 77 | * @param BaseCommand $command The command to patch. |
| 78 | 78 | * |
| 79 | - * @return BaseCommand |
|
| 79 | + * @return WrappedCommandTrait |
|
| 80 | 80 | * |
| 81 | 81 | * @throws \InvalidArgumentException When no setComposerFactory method is declared. |
| 82 | 82 | */ |