@@ -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 | { |
@@ -428,7 +428,7 @@ |
||
428 | 428 | $version['version'] = trim($process->getOutput()); |
429 | 429 | } else { |
430 | 430 | // get branch-alias defined in composer.json for dev-master (if any) |
431 | - $localConfig = $directory.'/composer.json'; |
|
431 | + $localConfig = $directory . '/composer.json'; |
|
432 | 432 | $file = new JsonFile($localConfig); |
433 | 433 | $localConfig = $file->read(); |
434 | 434 | if (isset($localConfig['extra']['branch-alias']['dev-master'])) { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | if ($strip) { |
153 | 153 | $content = $this->stripWhitespace($content); |
154 | 154 | } elseif ('LICENSE' === basename($file)) { |
155 | - $content = "\n".$content."\n"; |
|
155 | + $content = "\n" . $content . "\n"; |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | $this->addFileContent($path, $this->alterFileContents($path, $content)); |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | $path = $pathOverride; |
174 | 174 | } else { |
175 | 175 | $path = strtr( |
176 | - str_replace(dirname($this->getVendorDir()).DIRECTORY_SEPARATOR, '', $file->getRealPath()), |
|
176 | + str_replace(dirname($this->getVendorDir()) . DIRECTORY_SEPARATOR, '', $file->getRealPath()), |
|
177 | 177 | '\\', |
178 | 178 | '/' |
179 | 179 | ); |
@@ -122,7 +122,7 @@ |
||
122 | 122 | $this->addFile($file); |
123 | 123 | } |
124 | 124 | |
125 | - $this->addFile(new \SplFileInfo($composerDir.'/LICENSE'), false); |
|
125 | + $this->addFile(new \SplFileInfo($composerDir . '/LICENSE'), false); |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
@@ -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 | }, |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $fileSystem->remove($installDir . DIRECTORY_SEPARATOR . 'composer.json'); |
88 | 88 | $fileSystem->remove( |
89 | 89 | array_map( |
90 | - function ($file) use ($dataDir) { |
|
90 | + function($file) use ($dataDir) { |
|
91 | 91 | return $dataDir . DIRECTORY_SEPARATOR . $file; |
92 | 92 | }, |
93 | 93 | [ |
@@ -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) { |