Completed
Push — master ( fcb567...cd72aa )
by Damian
8s
created
mysite/code/services/PackagistService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
 use Guzzle\Http\Client;
8 7
 
9 8
 /**
Please login to merge, or discard this patch.
mysite/code/services/AddonBuilder.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -66,6 +66,9 @@  discard block
 block discarded – undo
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()
@@ -180,6 +183,9 @@  discard block
 block discarded – undo
180 183
         return (strpos($addon->Repository, 'github.com') !== false);
181 184
     }
182 185
 
186
+    /**
187
+     * @param string $path
188
+     */
183 189
     private function buildScreenshots(Addon $addon, PackageInterface $package, $path) {
184 190
         $extra = $package->getExtra();
185 191
         $screenshots = array();
Please login to merge, or discard this patch.
mysite/code/dataobjects/Addon.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
mysite/code/services/AddonUpdater.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -345,7 +345,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Composer\Package\AliasPackage;
4 3
 use Composer\Package\CompletePackage;
5
-use Guzzle\Http\Exception\ClientErrorResponseException;
6 4
 use SilverStripe\Elastica\ElasticaService;
7 5
 use Packagist\Api\Result\Package;
8 6
 use Composer\Package\Version\VersionParser;
Please login to merge, or discard this patch.