@@ -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 | { |
@@ -37,6 +37,9 @@ |
||
37 | 37 | } |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param \hipanel\inputs\TextInput $type |
|
42 | + */ |
|
40 | 43 | private function renderTextInput($type) |
41 | 44 | { |
42 | 45 | $this->activeField->template = "{label}\n<div class=\"input-group\">{input}<span class=\"input-group-addon\">{unit}</span></div>\n{hint}\n{error}"; |
@@ -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 |
@@ -1,7 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | use hipanel\modules\finance\grid\PurseGridView; |
4 | -use hipanel\modules\finance\models\Purse; |
|
5 | 4 | use hipanel\widgets\Box; |
6 | 5 | use hipanel\widgets\ModalButton; |
7 | 6 | use yii\helpers\Html; |
@@ -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 |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use Yii; |
16 | 16 | use yii\base\Object; |
17 | 17 | use yii\helpers\ArrayHelper; |
18 | -use yii\web\ForbiddenHttpException; |
|
19 | 18 | use yii\web\NotFoundHttpException; |
20 | 19 | |
21 | 20 | abstract class AbstractTariffManager extends Object |
@@ -63,6 +63,9 @@ |
||
63 | 63 | return $this->getDocumentsOfType('acceptance'); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string $type |
|
68 | + */ |
|
66 | 69 | public function getDocumentsOfType($type) |
67 | 70 | { |
68 | 71 | $res = []; |
@@ -24,7 +24,6 @@ |
||
24 | 24 | use hipanel\modules\finance\models\Bill; |
25 | 25 | use hipanel\modules\finance\models\ExchangeRate; |
26 | 26 | use hipanel\modules\finance\providers\BillTypesProvider; |
27 | -use hipanel\modules\finance\providers\ExchangeRatesProvider; |
|
28 | 27 | use Yii; |
29 | 28 | use yii\base\Module; |
30 | 29 | use yii\filters\AccessControl; |