@@ -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 |
@@ -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}"; |
@@ -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; |
@@ -31,6 +31,9 @@ |
||
31 | 31 | */ |
32 | 32 | private $billTypesProvider; |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $id |
|
36 | + */ |
|
34 | 37 | public function __construct($id, Module $module, BillTypesProvider $billTypesProvider, array $config = []) |
35 | 38 | { |
36 | 39 | parent::__construct($id, $module, $config); |
@@ -56,7 +56,7 @@ |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | - * @param $type |
|
59 | + * @param string $type |
|
60 | 60 | * @return DomainResource|ServerResource|resource |
61 | 61 | */ |
62 | 62 | public function getResourceByType($type) |