Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
lukepolo authored and StyleCIBot committed Jul 29, 2021
1 parent abbe06a commit 7d18f64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CartItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function total()
for ($qty = 0; $qty < $this->qty; $qty++) {
$total += LaraCart::formatMoney($this->subTotalPerItem(false) + array_sum($this->taxSummary()[$qty]), null, null, false);
}

$total -= $this->getDiscount(false);

if ($total < 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/Coupons/Percentage.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct($code, $value, $options = [])
public function discount($price)
{
if ($this->canApply()) {
return ($price * $this->value);
return $price * $this->value;
}

return 0;
Expand Down

0 comments on commit 7d18f64

Please sign in to comment.