Completed
Push — master ( 5283a1...334b38 )
by Andrii
06:52 queued 03:16
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/widgets/PrepaidAmountWidget.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@
 block discarded – undo
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}";
Please login to merge, or discard this patch.
src/models/Tariff.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/forms/DomainTariffForm.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/controllers/PayController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     /**
58 58
      * @param Transaction $transaction
59 59
      * @param $response
60
-     * @return mixed
60
+     * @return Transaction
61 61
      */
62 62
     protected function completeTransaction($transaction, $response)
63 63
     {
Please login to merge, or discard this patch.
src/actions/BillManagementAction.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace hipanel\modules\finance\actions;
4 4
 
5 5
 use hipanel\modules\finance\forms\BillForm;
6
-use hipanel\modules\finance\forms\BillImportForm;
7 6
 use hipanel\modules\finance\models\Bill;
8 7
 use hipanel\modules\finance\providers\BillTypesProvider;
9 8
 use hiqdev\hiart\Collection;
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/logic/bill/BillQuantityFactory.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,6 @@  discard block
 block discarded – undo
41 41
     }
42 42
 
43 43
     /**
44
-     * @param string $type Tariff type
45 44
      * @return string
46 45
      */
47 46
     protected function buildClassName()
@@ -49,6 +48,9 @@  discard block
 block discarded – undo
49 48
         return 'hipanel\modules\finance\logic\bill\\' . $this->types[$this->type];
50 49
     }
51 50
 
51
+    /**
52
+     * @param string $type
53
+     */
52 54
     protected function fixType($type)
53 55
     {
54 56
         if (strpos($type, ',') !== false) {
Please login to merge, or discard this patch.
src/forms/CertificateTariffForm.php 2 patches
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.
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\modules\finance\logic\IntegrityException;
14 14
 use hipanel\modules\finance\models\CertificateResource;
15
-use Yii;
16 15
 use yii\web\UnprocessableEntityHttpException;
17 16
 
18 17
 /**
Please login to merge, or discard this patch.