Skip to content

Commit

Permalink
Apply fixes from StyleCI (#182)
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
lukepolo authored Apr 1, 2017
1 parent fcbb769 commit 7b491bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/LaraCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,15 +367,15 @@ public function getItems()
* @param $key
* @param $value
*
* @return CartItem|null
* @throws Exceptions\InvalidPrice
* @throws Exceptions\InvalidQuantity
*
* @return CartItem|null
*/
public function updateItem($itemHash, $key, $value)
{
if (empty($item = $this->getItem($itemHash)) === false) {

if($key == 'qty' && $value == 0) {
if ($key == 'qty' && $value == 0) {
return $this->removeItem($itemHash);
}

Expand Down
1 change: 1 addition & 0 deletions tests/ItemsTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

use LukePOLO\LaraCart\Cart;

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/LaraCartTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function setUp()
{
parent::setUp();

/** @var Cart laracart */
/* @var Cart laracart */
$this->laracart = new \LukePOLO\LaraCart\LaraCart($this->session, $this->events, $this->authManager);
}

Expand Down

0 comments on commit 7b491bd

Please sign in to comment.