Completed
Pull Request — master (#19)
by Sullivan
04:16
created
src/VersionsCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             $higherPackages = $distRepository->findPackages($package->getName(), $versionConstraint);
44 44
             // Remove not stable packages if unwanted
45 45
             if (true === $rootPackage->getPreferStable()) {
46
-                $higherPackages = array_filter($higherPackages, function (PackageInterface $package) {
46
+                $higherPackages = array_filter($higherPackages, function(PackageInterface $package) {
47 47
                     return 'stable' === $package->getStability();
48 48
                 });
49 49
             }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 // PHP 5.3 BC
52 52
                 $that = $this;
53 53
                 // Sort packages by highest version to lowest
54
-                usort($higherPackages, function (PackageInterface $p1, PackageInterface $p2) use ($that) {
54
+                usort($higherPackages, function(PackageInterface $p1, PackageInterface $p2) use ($that) {
55 55
                     return $that->versionCompare($p1->getVersion(), '<', $p2->getVersion());
56 56
                 });
57 57
                 // Push actual and last package on outdated array
Please login to merge, or discard this patch.
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.
src/VersionsCheckPlugin.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use Composer\Repository\RepositoryManager;
13 13
 use Composer\Script\Event;
14 14
 use Composer\Script\ScriptEvents;
15
-use Symfony\Component\OptionsResolver\OptionsResolver;
16 15
 
17 16
 /**
18 17
  * @author Sullivan Senechal <[email protected]>
Please login to merge, or discard this patch.