@@ -97,6 +97,9 @@ discard block |
||
97 | 97 | return $this->name; |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param PackageInterface $package |
|
102 | + */ |
|
100 | 103 | public function packageFullName($package) |
101 | 104 | { |
102 | 105 | return $package->getName() . ':' . $package->getVersion(); |
@@ -274,6 +277,9 @@ discard block |
||
274 | 277 | $this->writeJson($this->file, $this->config); |
275 | 278 | } |
276 | 279 | |
280 | + /** |
|
281 | + * @param string $path |
|
282 | + */ |
|
277 | 283 | abstract public function writeRc($path, $data); |
278 | 284 | |
279 | 285 | /** |
@@ -291,7 +297,7 @@ discard block |
||
291 | 297 | |
292 | 298 | /** |
293 | 299 | * Prepares arguments and runs the command with [[passthru()]]. |
294 | - * @param array $arguments |
|
300 | + * @param string[] $arguments |
|
295 | 301 | * @return integer the exit code |
296 | 302 | */ |
297 | 303 | public function passthru(array $arguments = []) |
@@ -55,7 +55,7 @@ discard block |
||
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 |
||
64 | 64 | static public function findMax(array $versions) |
65 | 65 | { |
66 | 66 | $versions = array_values(array_unique($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; |