Completed
Pull Request — master (#6)
by
unknown
02:24
created
src/Calculators/DebtAmortizator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -347,10 +347,10 @@
 block discarded – undo
347 347
             $i = 1;
348 348
             $balance = $this->debtPrincipal;            
349 349
             foreach ($this->debtRepayments as $repayment) {
350
-          			if($balance > $repayment->getTotalAmount()) {      
350
+          			if ($balance > $repayment->getTotalAmount()) {      
351 351
 										$totalAmount = MathFuncs::round_up($repayment->getTotalAmount(), 2);
352 352
 										$interestAmount = MathFuncs::round($repayment->getInterestAmount(), 2);
353
-										$principalAmount = MathFuncs::round($totalAmount - $interestAmount, 2);
353
+										$principalAmount = MathFuncs::round($totalAmount-$interestAmount, 2);
354 354
 								}
355 355
 								else {
356 356
 										$interestAmount = MathFuncs::round($repayment->getInterestAmount(), 2);
Please login to merge, or discard this patch.