| @@ -345,7 +345,7 @@ | ||
| 345 | 345 | /** | 
| 346 | 346 | * Get the list of SilverStripe versions | 
| 347 | 347 | * | 
| 348 | - * @return DataList | |
| 348 | + * @return SilverStripeVersion[] | |
| 349 | 349 | */ | 
| 350 | 350 | public function getSilverStripeVersions() | 
| 351 | 351 |      { | 
| @@ -1,7 +1,6 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | 3 | use Composer\Package\Version\VersionParser; | 
| 4 | -use Guzzle\Http\Exception\ClientErrorResponseException; | |
| 5 | 4 | use Packagist\Api\Result\Package; | 
| 6 | 5 | use Packagist\Api\Result\Package\Version; | 
| 7 | 6 | use SilverStripe\Elastica\ElasticaService; | 
| @@ -69,6 +69,9 @@ discard block | ||
| 69 | 69 | $addon->write(); | 
| 70 | 70 | } | 
| 71 | 71 | |
| 72 | + /** | |
| 73 | + * @param string $path | |
| 74 | + */ | |
| 72 | 75 | protected function download(PackageInterface $package, $path) | 
| 73 | 76 |      { | 
| 74 | 77 | $this->packagist | 
| @@ -214,6 +217,9 @@ discard block | ||
| 214 | 217 | return (strpos($addon->Repository, 'github.com') !== false); | 
| 215 | 218 | } | 
| 216 | 219 | |
| 220 | + /** | |
| 221 | + * @param string $path | |
| 222 | + */ | |
| 217 | 223 | private function buildScreenshots(Addon $addon, PackageInterface $package, $path) | 
| 218 | 224 |      { | 
| 219 | 225 | $extra = $package->getExtra(); | 
| @@ -201,7 +201,7 @@ | ||
| 201 | 201 | * Calculate the total amount of downloads per day | 
| 202 | 202 | * Based on the total amount of downloads divided by the age of the addon | 
| 203 | 203 | * | 
| 204 | - * @return float | |
| 204 | + * @return integer | |
| 205 | 205 | */ | 
| 206 | 206 | public function getRelativePopularity() | 
| 207 | 207 |      { |