Completed
Pull Request — master (#97)
by Klochok
04:51
created
src/grid/BillGridView.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -202,11 +202,17 @@
 block discarded – undo
202 202
         ]);
203 203
     }
204 204
 
205
+    /**
206
+     * @param Bill $model
207
+     */
205 208
     public function tariffLink($model): string
206 209
     {
207 210
         return Html::a($model->tariff, ['@plan/view', 'id' => $model->tariff_id]);
208 211
     }
209 212
 
213
+    /**
214
+     * @param Bill $model
215
+     */
210 216
     public function objectTag($model): string
211 217
     {
212 218
         return $model->object ? implode(': ', [$model->class_label, $this->objectLink($model)]) : '';
Please login to merge, or discard this patch.
src/providers/FormulaExamplesProvider.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -47,6 +47,9 @@
 block discarded – undo
47 47
         ];
48 48
     }
49 49
 
50
+    /**
51
+     * @param string $name
52
+     */
50 53
     private function groupOf($name, $formulas)
51 54
     {
52 55
         return ['name' => $name, 'formulas' => $formulas];
Please login to merge, or discard this patch.
src/widgets/PrepaidAmountWidget.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -45,6 +45,9 @@
 block discarded – undo
45 45
         }
46 46
     }
47 47
 
48
+    /**
49
+     * @param \hipanel\inputs\TextInput $type
50
+     */
48 51
     private function renderTextInput($type)
49 52
     {
50 53
         $this->activeField->template = "{label}\n<div class=\"input-group\">{input}</div>\n{hint}\n{error}";
Please login to merge, or discard this patch.
src/forms/ServerTariffForm.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
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 16
 use Yii;
18 17
 use yii\web\UnprocessableEntityHttpException;
Please login to merge, or discard this patch.