Skip to content

Commit

Permalink
fixing cs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukepolo committed Feb 4, 2016
1 parent 42d3f26 commit cb23e87
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/CartItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function getDiscount($format = true)
{
$amount = 0;

if(app('laracart')->findCoupon($this->code)) {
if (app('laracart')->findCoupon($this->code)) {
$amount = $this->discount;
}

Expand Down Expand Up @@ -239,7 +239,7 @@ public function tax($amountNotTaxable = 0)
*/
public function setModel($itemModel)
{
if(!class_exists($itemModel)) {
if (!class_exists($itemModel)) {
throw new ModelNotFound();
}
$this->itemModel = $itemModel;
Expand Down
2 changes: 1 addition & 1 deletion src/LaraCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public function totalDiscount($format = true)
$total = 0;

foreach ($this->cart->coupons as $coupon) {
if($coupon->appliedToCart) {
if ($coupon->appliedToCart) {
$total += $coupon->discount();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/CouponTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function checkValidTimes(Carbon $startDate, Carbon $endDate, $throwErrors
*/
public function setDiscountOnItem(CartItem $item, $discountAmount)
{
if(!is_numeric($discountAmount)) {
if (!is_numeric($discountAmount)) {
throw new InvalidPrice('You must use a discount amount.');
}
$this->appliedToCart = false;
Expand Down
3 changes: 2 additions & 1 deletion tests/Models/TestItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
*
* @package LukePOLO\LaraCart\Tests\Models
*/
class TestItem {
class TestItem
{

public $id = 'itemID';
public $name = 'Test Item';
Expand Down

0 comments on commit cb23e87

Please sign in to comment.