@@ -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,8 +1,5 @@  | 
                                                    ||
| 1 | 1 | <?php  | 
                                                        
| 2 | 2 | |
| 3 | -use Composer\Package\AliasPackage;  | 
                                                        |
| 4 | -use Composer\Package\CompletePackage;  | 
                                                        |
| 5 | -use Guzzle\Http\Exception\ClientErrorResponseException;  | 
                                                        |
| 6 | 3 | use SilverStripe\Elastica\ElasticaService;  | 
                                                        
| 7 | 4 | use Packagist\Api\Result\Package;  | 
                                                        
| 8 | 5 | use Composer\Package\Version\VersionParser;  | 
                                                        
@@ -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();  | 
                                                        
@@ -3,7 +3,6 @@  | 
                                                    ||
| 3 | 3 | use Composer\Factory;  | 
                                                        
| 4 | 4 | use Composer\IO\NullIO;  | 
                                                        
| 5 | 5 | use Composer\Package\Loader\ArrayLoader;  | 
                                                        
| 6 | -use Composer\Repository\ComposerRepository;  | 
                                                        |
| 7 | 6 | |
| 8 | 7 | /**  | 
                                                        
| 9 | 8 | * Interacts with Packagist to retrieve package listings and details.  | 
                                                        
@@ -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 |      { |