Completed
Push — master ( bfe9a3...4101da )
by Klochok
06:10
created
src/controllers/ServerController.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@
 block discarded – undo
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;
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
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/controllers/HubController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@
 block discarded – undo
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'];
Please login to merge, or discard this patch.
src/models/Server.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.