Completed
Push — master ( f7351b...ceb96e )
by Sullivan
04:36 queued 01:52
created
tests/VersionsCheckTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
tests/VersionsCheckPluginTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -250,6 +250,9 @@
 block discarded – undo
250 250
         $addPluginReflection->invoke($this->composer->getPluginManager(), $plugin);
251 251
     }
252 252
 
253
+    /**
254
+     * @param string $expectedOutput
255
+     */
253 256
     private function assertSameOutput($expectedOutput, $message = '')
254 257
     {
255 258
         if ('@package_version@' === Composer::VERSION) {
Please login to merge, or discard this patch.
src/VersionsCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
             // Remove not stable packages if unwanted
47 47
             if (true === $rootPackage->getPreferStable()) {
48
-                $higherPackages = array_filter($higherPackages, function (PackageInterface $package) {
48
+                $higherPackages = array_filter($higherPackages, function(PackageInterface $package) {
49 49
                     return 'stable' === $package->getStability();
50 50
                 });
51 51
             }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             // We got higher packages! Let's push it.
54 54
             if (count($higherPackages) > 0) {
55 55
                 // Sort packages by highest version to lowest
56
-                usort($higherPackages, function (PackageInterface $p1, PackageInterface $p2) {
56
+                usort($higherPackages, function(PackageInterface $p1, PackageInterface $p2) {
57 57
                     return Comparator::compare($p1->getVersion(), '<', $p2->getVersion());
58 58
                 });
59 59
 
Please login to merge, or discard this patch.