Completed
Push — master ( 6dde3c...c34bb5 )
by Andrii
05:13
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.
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/addons/Discount.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -122,6 +122,9 @@
 block discarded – undo
122 122
         }
123 123
     }
124 124
 
125
+    /**
126
+     * @param string $name
127
+     */
125 128
     public function ensureSameType(self $other, $name)
126 129
     {
127 130
         if ($this->isRelative() && !$other->isRelative()) {
Please login to merge, or discard this patch.
tests/unit/charge/modifiers/FixedDiscountTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
         $this->assertAbsolute($this->value, $abs);
44 44
     }
45 45
 
46
+    /**
47
+     * @param FixedDiscount $abs
48
+     */
46 49
     public function assertAbsolute($value, $abs)
47 50
     {
48 51
         $this->assertEquals($value, $abs->getValue()->getValue());
@@ -58,6 +61,9 @@  discard block
 block discarded – undo
58 61
         $this->assertRelative($this->rate, $rel);
59 62
     }
60 63
 
64
+    /**
65
+     * @param FixedDiscount $rel
66
+     */
61 67
     protected function assertRelative($rate, $rel)
62 68
     {
63 69
         $this->assertSame($rate, $rel->getValue()->getValue());
@@ -77,6 +83,9 @@  discard block
 block discarded – undo
77 83
         $this->assertCharges($rel, $this->value);
78 84
     }
79 85
 
86
+    /**
87
+     * @param FixedDiscount $fd
88
+     */
80 89
     public function assertCharges($fd, $sum)
81 90
     {
82 91
         $action = $this->createAction($this->prepaid->multiply(2));
Please login to merge, or discard this patch.
tests/unit/charge/modifiers/LeasingTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
 {
24 24
     protected $reason = 'test reason string';
25 25
 
26
+    /**
27
+     * @param string $term
28
+     */
26 29
     protected function buildLeasing($term)
27 30
     {
28 31
         $month = (new DateTimeImmutable())->modify('first day of this month midnight');
Please login to merge, or discard this patch.
src/charge/modifiers/addons/WithReason.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -17,6 +17,11 @@
 block discarded – undo
17 17
  */
18 18
 trait WithReason
19 19
 {
20
+    /**
21
+     * @param string $text
22
+     *
23
+     * @return \hiqdev\php\billing\charge\modifiers\Modifier
24
+     */
20 25
     public function reason($text)
21 26
     {
22 27
         return $this->addAddon('reason', new Reason($text));
Please login to merge, or discard this patch.
src/charge/modifiers/addons/WithSince.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@
 block discarded – undo
17 17
  */
18 18
 trait WithSince
19 19
 {
20
+    /**
21
+     * @return \hiqdev\php\billing\charge\modifiers\Modifier
22
+     */
20 23
     public function since($time)
21 24
     {
22 25
         return $this->addAddon('since', new Since($time));
Please login to merge, or discard this patch.
src/charge/modifiers/addons/WithTill.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@
 block discarded – undo
17 17
  */
18 18
 trait WithTill
19 19
 {
20
+    /**
21
+     * @return \hiqdev\php\billing\charge\modifiers\Modifier
22
+     */
20 23
     public function till($time)
21 24
     {
22 25
         return $this->addAddon('till', new Till($time));
Please login to merge, or discard this patch.