Completed
Push — master ( 888950...2eb122 )
by Andrii
05:25
created
src/plan/Plan.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 hiqdev\php\billing\action\ActionInterface;
14 14
 use hiqdev\php\billing\charge\Charge;
15 15
 use hiqdev\php\billing\charge\ChargeInterface;
16
-use hiqdev\php\billing\charge\ChargeModifier;
17 16
 use hiqdev\php\billing\customer\CustomerInterface;
18 17
 use hiqdev\php\billing\price\PriceInterface;
19 18
 
Please login to merge, or discard this patch.
tests/unit/charge/modifiers/FixedDiscountTest.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@  discard block
 block discarded – undo
39 39
         $this->assertAbsolute($this->value, $abs);
40 40
     }
41 41
 
42
+    /**
43
+     * @param FixedDiscount $abs
44
+     */
42 45
     public function assertAbsolute($value, $abs)
43 46
     {
44 47
         $this->assertEquals($value, $abs->getValue());
@@ -54,6 +57,9 @@  discard block
 block discarded – undo
54 57
         $this->assertRelative($this->rate, $rel);
55 58
     }
56 59
 
60
+    /**
61
+     * @param FixedDiscount $rel
62
+     */
57 63
     protected function assertRelative($rate, $rel)
58 64
     {
59 65
         $this->assertSame($rate, $rel->getValue());
@@ -73,6 +79,9 @@  discard block
 block discarded – undo
73 79
         $this->assertFixedDiscountCharges($rel, $this->value);
74 80
     }
75 81
 
82
+    /**
83
+     * @param FixedDiscount $fd
84
+     */
76 85
     public function assertFixedDiscountCharges($fd, $sum)
77 86
     {
78 87
         $action = $this->createAction($this->prepaid->multiply(2));
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use hiqdev\php\billing\charge\modifiers\FixedDiscount;
15 15
 use hiqdev\php\billing\tests\unit\action\ActionTest;
16 16
 use hiqdev\php\units\Quantity;
17
-use Money\Currency;
18 17
 use Money\Money;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.