@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $this->git('push', $package->path, array('u' => 'origin', $package->branch)); |
93 | 93 | $this->console->output( |
94 | 94 | str_repeat(chr(8), strlen($package->name)) |
95 | - . '<info>' . $package->name . '</info>' |
|
95 | + . '<info>'.$package->name.'</info>' |
|
96 | 96 | ); |
97 | 97 | unset($this->pushPackages[$i]); |
98 | 98 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $unfixedRequirements = 0; |
137 | 137 | while ($packageName = array_shift($checkedOutPackages)) { |
138 | 138 | $branch = $packages[$packageName]->branch; |
139 | - $version = 'dev-' . $branch; |
|
139 | + $version = 'dev-'.$branch; |
|
140 | 140 | foreach ($this->getPackages(false, false) as $package) { |
141 | 141 | if (array_key_exists($packageName, $package->requires)) { |
142 | 142 | // TODO: Set required version to branch alias, if any |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | $this->assertPackageAllowed($package); |
195 | 195 | |
196 | 196 | $currentVersion = $package->requires[$requiredPackage]; |
197 | - $composerFile = $package->path . '/composer.json'; |
|
197 | + $composerFile = $package->path.'/composer.json'; |
|
198 | 198 | $composerFileContents = file_get_contents($composerFile); |
199 | 199 | $newComposerFileContents = preg_replace( |
200 | 200 | sprintf( |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | preg_quote($requiredPackage, '/'), |
203 | 203 | preg_quote($currentVersion, '/') |
204 | 204 | ), |
205 | - '$1' . $newVersion, |
|
205 | + '$1'.$newVersion, |
|
206 | 206 | $composerFileContents |
207 | 207 | ); |
208 | 208 | file_put_contents($composerFile, $newComposerFileContents); |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | if (!$package->git) { |
262 | 262 | throw new Exception('Non git package can not be checked out'); |
263 | 263 | } |
264 | - $remoteBranch = 'origin/' . $branch; |
|
264 | + $remoteBranch = 'origin/'.$branch; |
|
265 | 265 | $isRemote = in_array($remoteBranch, $package->branches, true); |
266 | 266 | if (in_array($branch, $package->branches, true)) { |
267 | 267 | $this->git('checkout', $package->path, $branch); |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | } elseif ($create) { |
271 | 271 | $branches = array_unique( |
272 | 272 | array_map( |
273 | - function ($el) { |
|
273 | + function($el) { |
|
274 | 274 | $parts = explode('/', $el); |
275 | 275 | return array_pop($parts); |
276 | 276 | }, |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | $this->console->output("Checked out <comment>{$package->name}</comment> at <comment>$branch</comment>"); |
303 | 303 | |
304 | 304 | $this->reloadRequires($package); |
305 | - $package->version = 'dev-' . $branch; |
|
305 | + $package->version = 'dev-'.$branch; |
|
306 | 306 | $package->branch = $branch; |
307 | 307 | |
308 | 308 | return true; |
@@ -326,7 +326,7 @@ discard block |
||
326 | 326 | throw new Exception('Non git package can not be merged'); |
327 | 327 | } |
328 | 328 | |
329 | - $this->git('fetch', $package->path, array('force' => true, 'origin', $branch . ':' . $branch)); |
|
329 | + $this->git('fetch', $package->path, array('force' => true, 'origin', $branch.':'.$branch)); |
|
330 | 330 | |
331 | 331 | $ff = $branch == 'master' ? 'ff' : 'no-ff'; |
332 | 332 | $optArg = array($ff => true, 'no-commit' => true); |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | if (!$message) { |
361 | 361 | $message = $this->answer( |
362 | 362 | 'Enter commit message:', |
363 | - 'Merged ' . $branch . ' into ' . $package->branch |
|
363 | + 'Merged '.$branch.' into '.$package->branch |
|
364 | 364 | ); |
365 | 365 | } |
366 | 366 | $this->git('commit', $package->path, array('n' => true, 'm' => $message)); |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | */ |
382 | 382 | private function resolveRequirementsConflict($package) |
383 | 383 | { |
384 | - $contents = file_get_contents($package->path . '/composer.json'); |
|
384 | + $contents = file_get_contents($package->path.'/composer.json'); |
|
385 | 385 | $ours = @json_decode( |
386 | 386 | preg_replace('/^<{7}.+\n(.+)\n(\|{7}|={7}).+>{7}.+$/smU', '$1', $contents) |
387 | 387 | ); |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | } |
403 | 403 | |
404 | 404 | $theirs['require'] = $this->mergeRequirements($package, $ours, $theirs); |
405 | - file_put_contents($package->path . '/composer.json', $this->jsonEncode($theirs)); |
|
405 | + file_put_contents($package->path.'/composer.json', $this->jsonEncode($theirs)); |
|
406 | 406 | } |
407 | 407 | |
408 | 408 | /** |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | { |
417 | 417 | return json_encode( |
418 | 418 | $var, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE |
419 | - ) . "\n"; |
|
419 | + )."\n"; |
|
420 | 420 | } |
421 | 421 | |
422 | 422 | /** |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | $theirsRequire = isset($theirs['require']) && is_object($theirs['require']) ? get_object_vars($theirs['require']) : []; |
435 | 435 | $mergedRequires = array_merge($oursRequire, $theirsRequire); |
436 | 436 | $packages = $this->getPackages(false, false); |
437 | - $preferredVersion = 'dev-' . $package->branch; |
|
437 | + $preferredVersion = 'dev-'.$package->branch; |
|
438 | 438 | foreach ($mergedRequires as $packageName => $version) { |
439 | 439 | $actualVersion = ($version === '@dev') ? 'dev-master' : $version; |
440 | 440 | if (array_key_exists($packageName, $oursRequire) |
@@ -500,9 +500,9 @@ discard block |
||
500 | 500 | if (!is_array($this->whitelists)) { |
501 | 501 | $this->whitelists = []; |
502 | 502 | foreach ($whitelistTypes as $whitelistType) { |
503 | - $option = $this->get('whitelist' . ucfirst($whitelistType) . 's'); |
|
503 | + $option = $this->get('whitelist'.ucfirst($whitelistType).'s'); |
|
504 | 504 | if ($option) { |
505 | - $this->whitelists[$whitelistType] = '#^' . $option . '$#'; |
|
505 | + $this->whitelists[$whitelistType] = '#^'.$option.'$#'; |
|
506 | 506 | } |
507 | 507 | } |
508 | 508 | } |