Completed
Push — master ( 2c90ef...0c24e9 )
by Klochok
05:02
created
src/models/Server.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/controllers/ServerController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -395,7 +395,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/helpers/ServerHelper.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/grid/RefuseGridView.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/models/Package.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
     }
116 116
 
117 117
     /**
118
-     * @return array
118
+     * @return string[]
119 119
      */
120 120
     public function getLocations()
121 121
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.