@@ -52,8 +52,8 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -23,7 +23,7 @@ |
||
| 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 | } |