@@ -20,7 +20,7 @@ |
||
20 | 20 | ); |
21 | 21 | |
22 | 22 | /** |
23 | - * @return Composer\Package\LinkConstraint\LinkConstraintInterface |
|
23 | + * @return MultiConstraint |
|
24 | 24 | */ |
25 | 25 | public function getConstraint() { |
26 | 26 | $next = $this->Major . '.' . ($this->Minor + 1); |
@@ -66,6 +66,9 @@ discard block |
||
66 | 66 | $addon->write(); |
67 | 67 | } |
68 | 68 | |
69 | + /** |
|
70 | + * @param string $path |
|
71 | + */ |
|
69 | 72 | protected function download(PackageInterface $package, $path) { |
70 | 73 | $this->packagist |
71 | 74 | ->getComposer() |
@@ -73,6 +76,9 @@ discard block |
||
73 | 76 | ->download($package, $path); |
74 | 77 | } |
75 | 78 | |
79 | + /** |
|
80 | + * @param string $path |
|
81 | + */ |
|
76 | 82 | private function buildReadme(Addon $addon, $path) { |
77 | 83 | $candidates = array( |
78 | 84 | 'README.md', |
@@ -107,6 +113,9 @@ discard block |
||
107 | 113 | } |
108 | 114 | } |
109 | 115 | |
116 | + /** |
|
117 | + * @param string $path |
|
118 | + */ |
|
110 | 119 | private function buildScreenshots(Addon $addon, PackageInterface $package, $path) { |
111 | 120 | $extra = $package->getExtra(); |
112 | 121 | $screenshots = array(); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | /** |
115 | 115 | * Remove the effect of code of conduct Helpful Robot measure that we currently don't include in the Supported module definition |
116 | 116 | * |
117 | - * @return integer Adjusted Helpful Robot score |
|
117 | + * @return double Adjusted Helpful Robot score |
|
118 | 118 | */ |
119 | 119 | public function getAdjustedHelpfulRobotScore() |
120 | 120 | { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * Calculate the total amount of downloads per day |
203 | 203 | * Based on the total amount of downloads divided by the age of the addon |
204 | 204 | * |
205 | - * @return float |
|
205 | + * @return integer |
|
206 | 206 | */ |
207 | 207 | public function getRelativePopularity() |
208 | 208 | { |