Completed
Push — master ( 9101e8...625686 )
by Dmitry
13:37
created
src/cart/AbstractPurchase.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/controllers/PurseController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@
 block discarded – undo
68 68
         return $this->generateDocument('generate-document', compact('id', 'type'));
69 69
     }
70 70
 
71
+    /**
72
+     * @param string $action
73
+     */
71 74
     public function generateDocument($action, $params)
72 75
     {
73 76
         try {
Please login to merge, or discard this patch.
src/forms/CertificateTariffForm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     }
41 41
 
42 42
     /**
43
-     * @return array
43
+     * @return string[]
44 44
      */
45 45
     public static function getPeriods()
46 46
     {
Please login to merge, or discard this patch.
src/models/Purse.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@
 block discarded – undo
89 89
         return $this->getDocumentsOfType('acceptance');
90 90
     }
91 91
 
92
+    /**
93
+     * @param string $type
94
+     */
92 95
     public function getDocumentsOfType($type)
93 96
     {
94 97
         if (Yii::$app->user->can('document.read') === false) {
Please login to merge, or discard this patch.
src/models/query/PlanQuery.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
 
16 16
 class PlanQuery extends \hiqdev\hiart\ActiveQuery
17 17
 {
18
+    /**
19
+     * @param integer $id
20
+     */
18 21
     public function byId($id)
19 22
     {
20 23
         return $this->andWhere(['id' => $id]);
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/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.
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.