Codestyle

This commit is contained in:
Patrick Henninger
2019-01-14 18:11:13 +01:00
parent 21ebf67f99
commit 862030288c
3 changed files with 32 additions and 31 deletions

View File

@@ -189,6 +189,7 @@ class Cart
if ($cartItem->qty <= 0) {
$this->remove($cartItem->rowId);
return;
} else {
$content->put($cartItem->rowId, $cartItem);
@@ -461,7 +462,7 @@ class Cart
*/
public function associate($rowId, $model)
{
if(is_string($model) && !class_exists($model)) {
if (is_string($model) && !class_exists($model)) {
throw new UnknownModelException("The supplied model {$model} does not exist.");
}
@@ -597,7 +598,7 @@ class Cart
$identifier = $identifier->getInstanceIdentifier();
}
if(!$this->storedCartWithIdentifierExists($identifier)) {
if (!$this->storedCartWithIdentifierExists($identifier)) {
return;
}
@@ -637,7 +638,7 @@ class Cart
*/
public function merge($identifier, $keepDiscount = false, $keepTax = false)
{
if(!$this->storedCartWithIdentifierExists($identifier)) {
if (!$this->storedCartWithIdentifierExists($identifier)) {
return false;
}