Completed
Pull Request — master (#19)
by Sullivan
06:00
created
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.