@@ -67,6 +67,9 @@ discard block |
||
| 67 | 67 | $addon->write(); |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param string $path |
|
| 72 | + */ |
|
| 70 | 73 | protected function download(PackageInterface $package, $path) { |
| 71 | 74 | $this->packagist |
| 72 | 75 | ->getComposer() |
@@ -74,6 +77,9 @@ discard block |
||
| 74 | 77 | ->download($package, $path); |
| 75 | 78 | } |
| 76 | 79 | |
| 80 | + /** |
|
| 81 | + * @param string $path |
|
| 82 | + */ |
|
| 77 | 83 | private function buildReadme(Addon $addon, $path) { |
| 78 | 84 | $candidates = array( |
| 79 | 85 | 'README.md', |
@@ -105,6 +111,9 @@ discard block |
||
| 105 | 111 | } |
| 106 | 112 | } |
| 107 | 113 | |
| 114 | + /** |
|
| 115 | + * @param string $path |
|
| 116 | + */ |
|
| 108 | 117 | private function buildScreenshots(Addon $addon, PackageInterface $package, $path) { |
| 109 | 118 | $extra = $package->getExtra(); |
| 110 | 119 | $screenshots = array(); |
@@ -35,6 +35,9 @@ |
||
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $msg |
|
| 40 | + */ |
|
| 38 | 41 | protected function log($msg) { |
| 39 | 42 | echo $msg . "\n"; |
| 40 | 43 | } |
@@ -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); |
@@ -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 | { |