Completed
Push — master ( ec7bbc...a96ef4 )
by Dmitry
02:59 queued 13s
created
src/models/AssetPackage.php 1 patch
Doc Comments   +17 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,9 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected static $_commonComposer;
59 59
 
60
+    /**
61
+     * @param string $name
62
+     */
60 63
     public static function normalizeName($name)
61 64
     {
62 65
         return strtolower($name);
@@ -92,11 +95,17 @@  discard block
 block discarded – undo
92 95
         return $this->_registry;
93 96
     }
94 97
 
98
+    /**
99
+     * @param string $type
100
+     */
95 101
     public function checkType($type)
96 102
     {
97 103
         return $type === 'bower' || $type === 'npm';
98 104
     }
99 105
 
106
+    /**
107
+     * @param string $name
108
+     */
100 109
     public function checkName($name)
101 110
     {
102 111
         return strlen($name) > 0;
@@ -107,6 +116,10 @@  discard block
 block discarded – undo
107 116
         return static::buildFullName($this->_type, $this->_name);
108 117
     }
109 118
 
119
+    /**
120
+     * @param string $type
121
+     * @param string $name
122
+     */
110 123
     public static function buildFullName($type, $name)
111 124
     {
112 125
         return $type . '-asset/' . $name;
@@ -284,6 +297,9 @@  discard block
 block discarded – undo
284 297
         return $requires;
285 298
     }
286 299
 
300
+    /**
301
+     * @param string $version
302
+     */
287 303
     public function prepareUid($version)
288 304
     {
289 305
         $known = $this->getSaved()->getRelease($version);
@@ -353,7 +369,7 @@  discard block
 block discarded – undo
353 369
     }
354 370
 
355 371
     /**
356
-     * @return array
372
+     * @return string[]
357 373
      */
358 374
     public function __sleep()
359 375
     {
Please login to merge, or discard this patch.