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 6d6b116 commit 167e5c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Coupons/Percentage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use LukePOLO\LaraCart\Contracts\CouponContract;
use LukePOLO\LaraCart\Exceptions\CouponException;
use LukePOLO\LaraCart\LaraCart;
use LukePOLO\LaraCart\Traits\CouponTrait;

/**
Expand Down Expand Up @@ -48,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 167e5c0

Please sign in to comment.