@@ -74,7 +74,7 @@ |
||
74 | 74 | * Executes the purchase. |
75 | 75 | * Calls proper API commands to purchase the product. |
76 | 76 | * @throws ErrorPurchaseException in case of failed purchase |
77 | - * @return true if the item was purchased successfully |
|
77 | + * @return boolean if the item was purchased successfully |
|
78 | 78 | */ |
79 | 79 | public function execute() |
80 | 80 | { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * @param $type |
|
60 | + * @param string $type |
|
61 | 61 | * @param bool $stubWhenNotFound whether to return [[ServerResourceStub]] when |
62 | 62 | * the tariff does not have a relevant resource |
63 | 63 | * @return DomainResource|ServerResource|ServerResourceStub|resource |
@@ -13,7 +13,6 @@ |
||
13 | 13 | use hipanel\modules\finance\logic\IntegrityException; |
14 | 14 | use hipanel\modules\finance\models\DomainResource; |
15 | 15 | use hipanel\modules\finance\models\DomainService; |
16 | -use hipanel\modules\finance\models\Tariff; |
|
17 | 16 | use yii\web\UnprocessableEntityHttpException; |
18 | 17 | |
19 | 18 | class DomainTariffForm extends AbstractTariffForm |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace hipanel\modules\finance\actions; |
4 | 4 | |
5 | 5 | use hipanel\modules\finance\forms\BillForm; |
6 | -use hipanel\modules\finance\forms\BillImportForm; |
|
7 | 6 | use hipanel\modules\finance\models\Bill; |
8 | 7 | use hipanel\modules\finance\providers\BillTypesProvider; |
9 | 8 | use hiqdev\hiart\Collection; |
@@ -68,6 +68,9 @@ |
||
68 | 68 | return $this->generateDocument('generate-document', compact('id', 'type')); |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param string $action |
|
73 | + */ |
|
71 | 74 | public function generateDocument($action, $params) |
72 | 75 | { |
73 | 76 | try { |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @return array |
|
43 | + * @return string[] |
|
44 | 44 | */ |
45 | 45 | public static function getPeriods() |
46 | 46 | { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | |
13 | 13 | use hipanel\modules\finance\logic\IntegrityException; |
14 | 14 | use hipanel\modules\finance\models\CertificateResource; |
15 | -use Yii; |
|
16 | 15 | use yii\web\UnprocessableEntityHttpException; |
17 | 16 | |
18 | 17 | /** |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @return array |
|
43 | + * @return string[] |
|
44 | 44 | */ |
45 | 45 | public static function getPeriods() |
46 | 46 | { |
@@ -12,7 +12,6 @@ |
||
12 | 12 | |
13 | 13 | use hipanel\base\ModelTrait; |
14 | 14 | use Yii; |
15 | -use yii\base\InvalidConfigException; |
|
16 | 15 | use yii\validators\NumberValidator; |
17 | 16 | |
18 | 17 | /** |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use hipanel\modules\finance\models\decorators\AbstractResourceDecorator; |
15 | 15 | use hipanel\modules\finance\models\decorators\ResourceDecoratorInterface; |
16 | 16 | use hipanel\modules\finance\models\ServerResource; |
17 | -use NumberFormatter; |
|
18 | 17 | use Yii; |
19 | 18 | |
20 | 19 | abstract class AbstractServerResourceDecorator extends AbstractResourceDecorator implements ResourceDecoratorInterface |
@@ -12,9 +12,7 @@ |
||
12 | 12 | |
13 | 13 | use hipanel\helpers\ArrayHelper; |
14 | 14 | use hipanel\modules\finance\logic\ServerTariffCalculatorInterface; |
15 | -use hipanel\modules\finance\models\Resource; |
|
16 | 15 | use hipanel\modules\finance\models\ServerResource; |
17 | -use hipanel\modules\server\models\Server; |
|
18 | 16 | use Yii; |
19 | 17 | use yii\web\UnprocessableEntityHttpException; |
20 | 18 |