Passed
Pull Request — master (#1)
by Kauri
03:27
created
src/PaymentScheduleConfigInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,5 +44,5 @@
 block discarded – undo
44 44
     /**
45 45
      * @return \DateTimeInterface|null
46 46
      */
47
-    public function getFirstPaymentDate(): ?\DateTimeInterface;
47
+    public function getFirstPaymentDate(): ? \DateTimeInterface;
48 48
 }
49 49
\ No newline at end of file
Please login to merge, or discard this patch.
src/PaymentScheduleConfig.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
         );
53 53
 
54 54
         foreach ($intervalMultiplier as $pattern => $multiplier) {
55
-            if ($dateInterval->format('%' . $pattern) > 0) {
56
-                $intervalLength = $intervalLength + (int) $dateInterval->format('%' . $pattern) * $multiplier;
55
+            if ($dateInterval->format('%'.$pattern) > 0) {
56
+                $intervalLength = $intervalLength + (int) $dateInterval->format('%'.$pattern) * $multiplier;
57 57
             }
58 58
         }
59 59
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * @return \DateTimeInterface|null
97 97
      */
98
-    public function getFirstPaymentDate(): ?\DateTimeInterface
98
+    public function getFirstPaymentDate(): ? \DateTimeInterface
99 99
     {
100 100
         return $this->firstPaymentDate;
101 101
     }
Please login to merge, or discard this patch.
src/PaymentScheduleFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $noOfPayments = $paymentScheduleConfig->getNoOfPayments();
24 24
         $firstPaymentDate = $paymentScheduleConfig->getFirstPaymentDate();
25 25
 
26
-        if (!is_null($firstPaymentDate)){
26
+        if (!is_null($firstPaymentDate)) {
27 27
             $startDate = $firstPaymentDate;
28 28
             $schedule->add($startDate, 1);
29 29
         }
Please login to merge, or discard this patch.