diff --git a/src/CartItem.php b/src/CartItem.php index 6c20201..b60c1cb 100644 --- a/src/CartItem.php +++ b/src/CartItem.php @@ -301,7 +301,7 @@ public function addCoupon(CouponContract $coupon) */ public function tax($amountNotTaxable = 0, $grossTax = true) { - if($this->getDiscount(false) >= $this->price) { + if ($this->getDiscount(false) >= $this->price) { return 0; } @@ -318,7 +318,7 @@ public function tax($amountNotTaxable = 0, $grossTax = true) } if ($grossTax && config('laracart.discountsAlreadyTaxed', false)) { - if($this->getDiscount(false) < $this->price) { + if ($this->getDiscount(false) < $this->price) { $totalTax = $totalTax - ($this->getDiscount(false) - ($this->getDiscount(false) / (1 + $this->tax))); } }