Completed
Push — master ( 2ec9f0...d428ee )
by Andrii
30:10 queued 22:08
created
src/models/AssetPackage.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected $_updateTime;
35 35
 
36
+    /**
37
+     * @param string $name
38
+     */
36 39
     public static function normalizeName($name)
37 40
     {
38 41
         return strtolower($name);
@@ -67,11 +70,17 @@  discard block
 block discarded – undo
67 70
         return Yii::$app->get('registryFactory');
68 71
     }
69 72
 
73
+    /**
74
+     * @param string $type
75
+     */
70 76
     public function checkType($type)
71 77
     {
72 78
         return $type === 'bower' || $type === 'npm';
73 79
     }
74 80
 
81
+    /**
82
+     * @param string $name
83
+     */
75 84
     public function checkName($name)
76 85
     {
77 86
         return strlen($name) > 0;
@@ -224,6 +233,9 @@  discard block
 block discarded – undo
224 233
         return $requires;
225 234
     }
226 235
 
236
+    /**
237
+     * @param string $version
238
+     */
227 239
     public function prepareUid($version)
228 240
     {
229 241
         $known = $this->getSaved()->getRelease($version);
@@ -293,7 +305,7 @@  discard block
 block discarded – undo
293 305
     }
294 306
 
295 307
     /**
296
-     * @return array
308
+     * @return string[]
297 309
      */
298 310
     public function __sleep()
299 311
     {
Please login to merge, or discard this patch.