@@ -395,7 +395,7 @@ |
||
395 | 395 | * |
396 | 396 | * @param Server $model |
397 | 397 | * @throws NotFoundHttpException |
398 | - * @return array |
|
398 | + * @return Osimage[] |
|
399 | 399 | */ |
400 | 400 | protected function getOsimages(Server $model = null) |
401 | 401 | { |
@@ -36,7 +36,6 @@ |
||
36 | 36 | use hipanel\modules\server\models\ServerUseSearch; |
37 | 37 | use hipanel\modules\server\models\SoftwareSettings; |
38 | 38 | use hipanel\modules\server\widgets\ResourceConsumption; |
39 | -use hipanel\modules\server\widgets\TrafficConsumption; |
|
40 | 39 | use hiqdev\hiart\ResponseErrorException; |
41 | 40 | use hiqdev\yii2\cart\actions\AddToCartAction; |
42 | 41 | use Yii; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * Gets array of [[Osimage]] for $type. |
56 | 56 | * |
57 | 57 | * @param string $type |
58 | - * @return Osimage[]|null |
|
58 | + * @return Osimage[] |
|
59 | 59 | */ |
60 | 60 | public static function getOsimages($type = null) |
61 | 61 | { |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | * @param integer $tariff_id |
151 | 151 | * @throws NotFoundHttpException |
152 | 152 | * @throws UnprocessableEntityHttpException |
153 | - * @return Package|array |
|
153 | + * @return Osimage[] |
|
154 | 154 | */ |
155 | 155 | public static function getAvailablePackages($type = null, $tariff_id = null) |
156 | 156 | { |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | } |
198 | 198 | |
199 | 199 | /** |
200 | - * @param $tariff |
|
200 | + * @param Tariff $tariff |
|
201 | 201 | * @return mixed |
202 | 202 | */ |
203 | 203 | public static function buildPackageClass($tariff) |
@@ -89,6 +89,9 @@ |
||
89 | 89 | return $this->getFullFromRef('type,nic_media'); |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param string $gtype |
|
94 | + */ |
|
92 | 95 | protected function getFullFromRef($gtype) |
93 | 96 | { |
94 | 97 | $callingMethod = debug_backtrace()[1]['function']; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | /** |
106 | 106 | * Determine good server states. |
107 | 107 | * |
108 | - * @return array |
|
108 | + * @return string[] |
|
109 | 109 | */ |
110 | 110 | public function goodStates() |
111 | 111 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | /** |
219 | 219 | * During 5 days after the last expiration client is able to refuse server with full refund. |
220 | 220 | * Method checks, whether 5 days passed. |
221 | - * @return bool |
|
221 | + * @return null|boolean |
|
222 | 222 | */ |
223 | 223 | public function canFullRefuse() |
224 | 224 | { |