Completed
Pull Request — master (#19)
by Sullivan
06:00
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.
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.
src/VersionsCheck.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
             // Remove not stable packages if unwanted
51 51
             if (true === $rootPackage->getPreferStable()) {
52
-                $higherPackages = array_filter($higherPackages, function (PackageInterface $package) {
52
+                $higherPackages = array_filter($higherPackages, function(PackageInterface $package) {
53 53
                     return 'stable' === $package->getStability();
54 54
                 });
55 55
             }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                 $that = $this;
61 61
 
62 62
                 // Sort packages by highest version to lowest
63
-                usort($higherPackages, function (PackageInterface $p1, PackageInterface $p2) use ($that) {
63
+                usort($higherPackages, function(PackageInterface $p1, PackageInterface $p2) use ($that) {
64 64
                     return $that->versionCompare($p1->getVersion(), '<', $p2->getVersion());
65 65
                 });
66 66
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     private function getPackageDepends(Pool $pool, PackageInterface $package)
121 121
     {
122
-        return array_filter($pool->whatProvides($package->getName()), function (PackageInterface $dependsPackage) use ($package) {
122
+        return array_filter($pool->whatProvides($package->getName()), function(PackageInterface $dependsPackage) use ($package) {
123 123
             return $dependsPackage !== $package;
124 124
         });
125 125
     }
Please login to merge, or discard this patch.