@@ -91,7 +91,7 @@ |
||
| 91 | 91 | /** |
| 92 | 92 | * Determine good server states. |
| 93 | 93 | * |
| 94 | - * @return array |
|
| 94 | + * @return string[] |
|
| 95 | 95 | */ |
| 96 | 96 | public function goodStates() |
| 97 | 97 | { |
@@ -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 | { |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * Gets array of [[Osimage]] for $type |
| 59 | 59 | * |
| 60 | 60 | * @param string $type |
| 61 | - * @return Osimage[]|null |
|
| 61 | + * @return Osimage[] |
|
| 62 | 62 | */ |
| 63 | 63 | public static function getOsimages($type = null) |
| 64 | 64 | { |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | * @param integer $tariff_id |
| 155 | 155 | * @throws NotFoundHttpException |
| 156 | 156 | * @throws UnprocessableEntityHttpException |
| 157 | - * @return Package|array |
|
| 157 | + * @return Osimage[] |
|
| 158 | 158 | */ |
| 159 | 159 | public static function getAvailablePackages($type = null, $tariff_id = null) |
| 160 | 160 | { |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | } |
| 237 | 237 | |
| 238 | 238 | /** |
| 239 | - * @param $tariff |
|
| 239 | + * @param Tariff $tariff |
|
| 240 | 240 | * @return mixed |
| 241 | 241 | */ |
| 242 | 242 | public static function buildPackageClass($tariff) |
@@ -11,9 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace hipanel\modules\server\grid; |
| 13 | 13 | |
| 14 | -use hipanel\grid\ActionColumn; |
|
| 15 | -use hipanel\modules\server\helpers\ServerHelper; |
|
| 16 | -use hipanel\modules\server\widgets\OSFormatter; |
|
| 17 | 14 | use Yii; |
| 18 | 15 | |
| 19 | 16 | class RefuseGridView extends \hipanel\grid\BoxedGridView |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use hipanel\base\View; |
| 4 | 4 | use hipanel\helpers\Url; |
| 5 | -use hipanel\widgets\ActionBox; |
|
| 6 | 5 | use hipanel\widgets\IndexPage; |
| 7 | 6 | use hipanel\widgets\Pjax; |
| 8 | 7 | use yii\grid\GridView; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | use hipanel\base\View; |
| 4 | 4 | use hipanel\helpers\Url; |
| 5 | -use hipanel\widgets\ActionBox; |
|
| 6 | 5 | use hipanel\widgets\IndexPage; |
| 7 | 6 | use hipanel\widgets\Pjax; |
| 8 | 7 | use yii\grid\GridView; |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | - * @return array |
|
| 118 | + * @return string[] |
|
| 119 | 119 | */ |
| 120 | 120 | public function getLocations() |
| 121 | 121 | { |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace hipanel\modules\server\models; |
| 13 | 13 | |
| 14 | -use hipanel\modules\finance\logic\Calculator; |
|
| 15 | 14 | use hipanel\modules\finance\models\Calculation; |
| 16 | 15 | use hipanel\modules\finance\models\ServerResource; |
| 17 | 16 | use hipanel\modules\finance\models\stubs\ServerResourceStub; |