Skip to content

Commit

Permalink
fix travis styles
Browse files Browse the repository at this point in the history
  • Loading branch information
cjonstrup committed Oct 27, 2018
1 parent 0b4588b commit 50add30
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 32 deletions.
8 changes: 3 additions & 5 deletions src/Basket.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
use InvalidArgumentException;

/**
* Class Basket
*
* @package Lenius\Basket
* Class Basket.
*/
class Basket
{
Expand Down Expand Up @@ -107,9 +105,9 @@ public function insert(array $item)
/**
* Update an item.
*
* @param string $itemIdentifier The unique item identifier
* @param string $itemIdentifier The unique item identifier
* @param string|array $key The key to update, or an array of key-value pairs
* @param mixed $value The value to set $key to
* @param mixed $value The value to set $key to
*
* @return void
*/
Expand Down
4 changes: 1 addition & 3 deletions src/Identifier/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
use Lenius\Basket\IdentifierInterface;

/**
* Class Cookie
*
* @package Lenius\Basket\Identifier
* Class Cookie.
*/
class Cookie implements IdentifierInterface
{
Expand Down
4 changes: 1 addition & 3 deletions src/Identifier/Runtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
use Lenius\Basket\IdentifierInterface;

/**
* Class Runtime
*
* @package Lenius\Basket\Identifier
* Class Runtime.
*/
class Runtime implements IdentifierInterface
{
Expand Down
4 changes: 1 addition & 3 deletions src/IdentifierInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
namespace Lenius\Basket;

/**
* Interface IdentifierInterface
*
* @package Lenius\Basket
* Interface IdentifierInterface.
*/
interface IdentifierInterface
{
Expand Down
10 changes: 4 additions & 6 deletions src/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
namespace Lenius\Basket;

/**
* Class Item
* Class Item.
*
* @property-read string $identifier
* @property-read float $price
* @property-read int $quantity
* @property-read float $weight
*
* @package Lenius\Basket
*/
class Item
{
Expand All @@ -41,7 +39,7 @@ class Item
/** @var Tax $tax */
protected $tax;

/** @var array $data*/
/** @var array $data */
protected $data = [];

/**
Expand Down Expand Up @@ -150,7 +148,7 @@ public function total($includeTax = true)
$price = $this->tax->add($price);
}

return ($price * $this->quantity);
return $price * $this->quantity;
}

/**
Expand All @@ -170,7 +168,7 @@ public function weight()
}
}

return ($weight * $this->quantity);
return $weight * $this->quantity;
}

/**
Expand Down
4 changes: 1 addition & 3 deletions src/Storage/Runtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
use Lenius\Basket\StorageInterface;

/**
* Class Runtime
*
* @package Lenius\Basket\Storage
* Class Runtime.
*/
class Runtime implements StorageInterface
{
Expand Down
4 changes: 1 addition & 3 deletions src/Storage/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
use Lenius\Basket\StorageInterface;

/**
* Class Session
*
* @package Lenius\Basket\Storage
* Class Session.
*/
class Session extends Runtime implements StorageInterface
{
Expand Down
4 changes: 1 addition & 3 deletions src/StorageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
namespace Lenius\Basket;

/**
* Interface StorageInterface
*
* @package Lenius\Basket
* Interface StorageInterface.
*/
interface StorageInterface
{
Expand Down
4 changes: 1 addition & 3 deletions src/Tax.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
namespace Lenius\Basket;

/**
* Class Tax
*
* @package Lenius\Basket
* Class Tax.
*/
class Tax
{
Expand Down

0 comments on commit 50add30

Please sign in to comment.