Completed
Push — master ( 4d6fa7...83de61 )
by
unknown
13:33
created
src/menus/RequisiteActionsMenu.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use hiqdev\yii2\menus\Menu;
15 15
 use yii\bootstrap\Modal;
16 16
 use yii\helpers\Html;
17
-
18 17
 use Yii;
19 18
 
20 19
 class RequisiteActionsMenu extends Menu
Please login to merge, or discard this patch.
src/models/CertificatePrice.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     }
120 120
 
121 121
     /**
122
-     * @return array
122
+     * @return string[]
123 123
      */
124 124
     public static function getPeriods()
125 125
     {
@@ -153,6 +153,9 @@  discard block
 block discarded – undo
153 153
         return $this->moneyFormatter->format($this->getMoneyForPeriod($period));
154 154
     }
155 155
 
156
+    /**
157
+     * @return Money
158
+     */
156 159
     public function getMoneyForPeriod(int $period): ?Money
157 160
     {
158 161
         if (!$this->hasPriceForPeriod($period)) {
Please login to merge, or discard this patch.
src/models/CertificateResource.php 2 patches
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     }
58 58
 
59 59
     /**
60
-     * @return array
60
+     * @return string[]
61 61
      */
62 62
     public static function getPeriods()
63 63
     {
@@ -82,6 +82,9 @@  discard block
 block discarded – undo
82 82
         return $periods;
83 83
     }
84 84
 
85
+    /**
86
+     * @param integer $period
87
+     */
85 88
     public function getPriceForPeriod($period)
86 89
     {
87 90
         $sums = $this->data['sums'][$period];
@@ -95,7 +98,7 @@  discard block
 block discarded – undo
95 98
 
96 99
     /**
97 100
      * @param int $period
98
-     * @return string|null
101
+     * @return null|Money
99 102
      */
100 103
     public function getMoneyForPeriod(int $period)
101 104
     {
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -11,11 +11,7 @@
 block discarded – undo
11 11
 namespace hipanel\modules\finance\models;
12 12
 
13 13
 use hipanel\base\ModelTrait;
14
-use Money\Formatter\IntlMoneyFormatter;
15
-use Money\Money;
16
-use Money\MoneyParser;
17 14
 use Yii;
18
-use yii\base\InvalidConfigException;
19 15
 use yii\validators\NumberValidator;
20 16
 
21 17
 /**
Please login to merge, or discard this patch.
src/cart/AbstractCartPosition.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      *
87 87
      * The $price will be casted to double
88 88
      *
89
-     * @param mixed $price
89
+     * @param string $price
90 90
      */
91 91
     public function setPrice($price)
92 92
     {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
      *
170 170
      * The $value will be casted to double
171 171
      *
172
-     * @param mixed $value
172
+     * @param string $value
173 173
      */
174 174
     public function setValue($value)
175 175
     {
Please login to merge, or discard this patch.
src/grid/ChargeGridView.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 namespace hipanel\modules\finance\grid;
12 12
 
13 13
 use hipanel\grid\CurrencyColumn;
14
-use hipanel\grid\MainColumn;
15
-use hipanel\modules\client\grid\ClientColumn;
16 14
 use hipanel\modules\finance\logic\bill\QuantityFormatterFactoryInterface;
17 15
 use hipanel\modules\finance\models\Charge;
18 16
 use hipanel\modules\finance\models\ChargeSearch;
Please login to merge, or discard this patch.
src/grid/BillGridView.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -220,6 +220,9 @@
 block discarded – undo
220 220
         return $canSeeLink ? Html::a($model->tariff, ['@plan/view', 'id' => $model->tariff_id]) : $model->tariff;
221 221
     }
222 222
 
223
+    /**
224
+     * @param Bill $model
225
+     */
223 226
     public function objectTag($model): string
224 227
     {
225 228
         return $model->object ? implode(': ', [Yii::t('hipanel', $model->class_label), $this->objectLink($model)]) : '';
Please login to merge, or discard this patch.
src/widgets/CartCurrencyNegotiator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -154,6 +154,9 @@
 block discarded – undo
154 154
         return parent::getViewPath() . DIRECTORY_SEPARATOR . 'cartPaymentOptions';
155 155
     }
156 156
 
157
+    /**
158
+     * @param string $view
159
+     */
157 160
     public function render($view, $params = [])
158 161
     {
159 162
         return parent::render($view, array_merge($params, [
Please login to merge, or discard this patch.
src/views/plan/referral/view.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 use hipanel\modules\finance\grid\ReferralPriceGridView;
4 4
 use hipanel\modules\finance\helpers\PlanInternalsGrouper;
5 5
 use hipanel\modules\finance\models\Plan;
6
-use hipanel\modules\finance\models\RatePrice;
7 6
 use hipanel\modules\finance\models\Sale;
8 7
 use hipanel\modules\finance\models\Price;
9 8
 use hipanel\modules\finance\widgets\CreateReferralPricesButton;
Please login to merge, or discard this patch.