Completed
Push — master ( 81baf3...2b2a9c )
by Andrii
04:55 queued 01:59
created
src/plan/PlanRepositoryInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
26 26
 
27 27
     /**
28 28
      * Finds suitable plans for given order: customer + actions.
29
-     * @param ActionInterface $action
30 29
      * @return PlanInterface[] array: actionKey => plan
31 30
      */
32 31
     public function findByOrder(OrderInterface $order);
Please login to merge, or discard this patch.
src/type/Type.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-     * @return string
45
+     * @return boolean
46 46
      */
47 47
     public function equals(TypeInterface $other)
48 48
     {
Please login to merge, or discard this patch.
tests/unit/price/PriceFactoryTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use hiqdev\php\billing\type\Type;
19 19
 use hiqdev\php\units\Quantity;
20 20
 use hiqdev\php\units\Unit;
21
-use Money\Currency;
22 21
 use Money\Money;
23 22
 
24 23
 /**
Please login to merge, or discard this patch.
src/price/EnumPrice.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@
 block discarded – undo
43 43
      */
44 44
     protected $sums;
45 45
 
46
+    /**
47
+     * @param string|null $id
48
+     */
46 49
     public function __construct(
47 50
                             $id,
48 51
         TypeInterface       $type,
Please login to merge, or discard this patch.
src/charge/modifiers/Discount.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -19,11 +19,17 @@
 block discarded – undo
19 19
  */
20 20
 class Discount extends Modifier
21 21
 {
22
+    /**
23
+     * @param integer $value
24
+     */
22 25
     public function fixed($value)
23 26
     {
24 27
         return new FixedDiscount($value, $this->addons);
25 28
     }
26 29
 
30
+    /**
31
+     * @param integer $step
32
+     */
27 33
     public function grows($step, $start = null)
28 34
     {
29 35
         return new GrowingDiscount($step, $start, $this->addons);
Please login to merge, or discard this patch.
features/bootstrap/FeatureContext.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -91,6 +91,9 @@
 block discarded – undo
91 91
         $this->charge(3, $type, $sum, $currency);
92 92
     }
93 93
 
94
+    /**
95
+     * @param integer $no
96
+     */
94 97
     public function charge($no, $type, $sum = null, $currency = null)
95 98
     {
96 99
         var_dump($this->formula);
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,11 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use Behat\Behat\Context\Context;
4
-use Behat\Gherkin\Node\PyStringNode;
5
-use Behat\Gherkin\Node\TableNode;
6 4
 use DateTimeImmutable;
7 5
 use hiqdev\php\billing\action\Action;
8
-use hiqdev\php\billing\charge\Charge;
9 6
 use hiqdev\php\billing\customer\Customer;
10 7
 use hiqdev\php\billing\price\SinglePrice;
11 8
 use hiqdev\php\billing\target\Target;
Please login to merge, or discard this patch.