From f5f91d7b291791a3a62d99b9ed7a99b5ac83702c Mon Sep 17 00:00:00 2001 From: Luke Policinski Date: Sat, 27 Jan 2018 17:14:06 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/CartItem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))); } }