@@ -33,6 +33,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 293 | 305 | } |
| 294 | 306 | |
| 295 | 307 | /** |
| 296 | - * @return array |
|
| 308 | + * @return string[] |
|
| 297 | 309 | */ |
| 298 | 310 | public function __sleep() |
| 299 | 311 | { |