Completed
Push — master ( 6e65a9...c58e43 )
by Andrii
02:43
created
src/Plugin.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
     /**
155 155
      * Returns package with given name if exists.
156 156
      * @param string $name package name
157
-     * @return \Composer\Package\PackageInterface|null
157
+     * @return \Composer\Package\RootPackageInterface|PackageInterface|null
158 158
      */
159 159
     public function findPackage($name)
160 160
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
     public function onPreDependenciesSolving(InstallerEvent $event)
146 146
     {
147 147
         $pool = $event->getPool();
148
-        for ($i=1; $i<= $pool->count(); $i++) {
148
+        for ($i = 1; $i <= $pool->count(); $i++) {
149 149
             $package = $pool->packageById($i);
150 150
             $this->removeAssetDependencies($package);
151 151
         }
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,12 +14,10 @@
 block discarded – undo
14 14
 use Composer\Composer;
15 15
 use Composer\EventDispatcher\EventSubscriberInterface;
16 16
 use Composer\Installer\InstallerEvent;
17
-use Composer\Installer\InstallerEvents;
18 17
 use Composer\IO\IOInterface;
19 18
 use Composer\Json\JsonFile;
20 19
 use Composer\Package\PackageInterface;
21 20
 use Composer\Plugin\CommandEvent;
22
-use Composer\Plugin\PluginEvents;
23 21
 use Composer\Plugin\PluginInterface;
24 22
 use Composer\Script\Event;
25 23
 use Composer\Script\ScriptEvents;
Please login to merge, or discard this patch.
src/Constraint.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@
 block discarded – undo
33 33
         return static::$parser;
34 34
     }
35 35
 
36
+    /**
37
+     * @param string $constraint
38
+     */
36 39
     static public function parse($constraint)
37 40
     {
38 41
         return static::getParser()->parseConstraints($constraint);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         } elseif ($bcon instanceof EmptyConstraint) {
56 56
             return $a;
57 57
         } elseif ($acon->matches($bcon) || $bcon->matches($acon)) {
58
-            return strlen($a)>strlen($b) ? $b : $a;
58
+            return strlen($a) > strlen($b) ? $b : $a;
59 59
         } else {
60 60
             return $a . ' ' . $b;
61 61
         }
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
     static public function findMax(array $versions)
65 65
     {
66 66
         $versions = array_unique(array_values($versions));
67
-        if (count($versions)<2) {
67
+        if (count($versions) < 2) {
68 68
             return reset($versions);
69 69
         }
70 70
         $max = $versions[0];
71
-        for ($i=1; $i<= count($versions); $i++) {
71
+        for ($i = 1; $i <= count($versions); $i++) {
72 72
             $cur = $versions[$i];
73 73
             if (Comparator::compare($cur, '>', $max)) {
74 74
                 $max = $cur;
Please login to merge, or discard this patch.
src/PackageManager.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,6 +82,9 @@  discard block
 block discarded – undo
82 82
         );
83 83
     }
84 84
 
85
+    /**
86
+     * @param PackageInterface $package
87
+     */
85 88
     public function packageFullName($package)
86 89
     {
87 90
         return $package->getName() . ':' . $package->getVersion();
@@ -263,7 +266,7 @@  discard block
 block discarded – undo
263 266
 
264 267
     /**
265 268
      * Prepares arguments and runs the command with [[passthru()]].
266
-     * @param array $arguments
269
+     * @param string[] $arguments
267 270
      * @return integer the exit code
268 271
      */
269 272
     public function passthru(array $arguments = [])
Please login to merge, or discard this patch.