@@ -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 | { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use hipanel\modules\finance\models\DomainResource; |
| 6 | 6 | use hipanel\modules\finance\models\DomainService; |
| 7 | -use hipanel\modules\finance\models\Tariff; |
|
| 8 | 7 | use yii\web\UnprocessableEntityHttpException; |
| 9 | 8 | |
| 10 | 9 | class DomainTariffForm extends AbstractTariffForm |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace hipanel\modules\finance\logic; |
| 4 | 4 | |
| 5 | -use hipanel\modules\finance\forms\DomainTariffForm; |
|
| 6 | 5 | use hipanel\modules\finance\forms\VdsTariffForm; |
| 7 | 6 | use hipanel\modules\finance\models\Tariff; |
| 8 | 7 | use hiqdev\hiart\ErrorResponseException; |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use hipanel\modules\finance\models\decorators\ResourceDecoratorInterface; |
| 8 | 8 | use hipanel\modules\finance\models\ServerResource; |
| 9 | 9 | use Yii; |
| 10 | -use yii\helpers\Inflector; |
|
| 11 | 10 | |
| 12 | 11 | abstract class AbstractServerResourceDecorator extends AbstractResourceDecorator implements ResourceDecoratorInterface |
| 13 | 12 | { |
@@ -12,9 +12,7 @@ |
||
| 12 | 12 | namespace hipanel\modules\finance\models; |
| 13 | 13 | |
| 14 | 14 | use hipanel\base\ModelTrait; |
| 15 | -use hipanel\modules\finance\models\decorators\AbstractResourceDecorator; |
|
| 16 | 15 | use hipanel\modules\finance\models\decorators\server\AbstractServerResourceDecorator; |
| 17 | -use hipanel\modules\finance\models\decorators\server\BackupResourceDecorator; |
|
| 18 | 16 | use hipanel\modules\finance\models\decorators\server\ServerResourceDecoratorFactory; |
| 19 | 17 | use Yii; |
| 20 | 18 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | - * @param $type |
|
| 60 | + * @param string $type |
|
| 61 | 61 | * @return DomainResource|ServerResource|Resource |
| 62 | 62 | */ |
| 63 | 63 | public function getResourceByType($type) |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * TariffCalculator constructor. |
| 25 | - * @param Model[]|Model $tariffs |
|
| 25 | + * @param \hipanel\modules\finance\models\Tariff $tariffs |
|
| 26 | 26 | */ |
| 27 | 27 | public function __construct($tariffs) |
| 28 | 28 | { |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace hipanel\modules\finance\models; |
| 13 | 13 | |
| 14 | -use Guzzle\Plugin\ErrorResponse\Exception\ErrorResponseException; |
|
| 15 | 14 | use Yii; |
| 16 | 15 | use yii\base\InvalidParamException; |
| 17 | 16 | |