@@ -88,7 +88,7 @@ |
||
88 | 88 | array('2.0.0', '2.0.0', false), |
89 | 89 | array('2.0.0', '1.9.9', false), |
90 | 90 | array('1.9.9', '2.0.0', true), |
91 | - array('2.0.0', '2.1.0-alpha1', true), // Should be true because no stable package available |
|
91 | + array('2.0.0', '2.1.0-alpha1', true), // Should be true because no stable package available |
|
92 | 92 | array('2.0.0', '2.1.0-alpha1', false, true), // Should be false because of minimum stability |
93 | 93 | array('2.0.0-alpha1', '2.1.0-alpha2', true), |
94 | 94 | ); |
@@ -256,6 +256,9 @@ |
||
256 | 256 | $addPluginReflection->invoke($this->composer->getPluginManager(), $plugin); |
257 | 257 | } |
258 | 258 | |
259 | + /** |
|
260 | + * @param string $expectedOutput |
|
261 | + */ |
|
259 | 262 | private function assertSameOutput($expectedOutput, $message = '') |
260 | 263 | { |
261 | 264 | $this->assertSame($expectedOutput, $this->io->getOutput(), $message); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | // Remove not stable packages if unwanted |
42 | 42 | if (true === $rootPackage->getPreferStable()) { |
43 | - $higherPackages = array_filter($higherPackages, function (PackageInterface $package) { |
|
43 | + $higherPackages = array_filter($higherPackages, function(PackageInterface $package) { |
|
44 | 44 | return 'stable' === $package->getStability(); |
45 | 45 | }); |
46 | 46 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | // We got higher packages! Let's push it. |
49 | 49 | if (\count($higherPackages) > 0) { |
50 | 50 | // Sort packages by highest version to lowest |
51 | - usort($higherPackages, function (PackageInterface $p1, PackageInterface $p2) { |
|
51 | + usort($higherPackages, function(PackageInterface $p1, PackageInterface $p2) { |
|
52 | 52 | if (Comparator::compare($p1->getVersion(), '=', $p2->getVersion())) { |
53 | 53 | return 0; |
54 | 54 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $this->createNotUpToDateOutput($output, $showDepends); |
87 | 87 | } |
88 | 88 | |
89 | - return implode(PHP_EOL, $output) . PHP_EOL; |
|
89 | + return implode(PHP_EOL, $output).PHP_EOL; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |