mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
StyleCI
This commit is contained in:
@@ -387,10 +387,12 @@ class CartItem implements Arrayable, Jsonable
|
|||||||
if (isset($this->associatedModel)) {
|
if (isset($this->associatedModel)) {
|
||||||
return with(new $this->associatedModel())->find($this->id);
|
return with(new $this->associatedModel())->find($this->id);
|
||||||
}
|
}
|
||||||
|
// no break
|
||||||
case 'modelFQCN':
|
case 'modelFQCN':
|
||||||
if (isset($this->associatedModel)) {
|
if (isset($this->associatedModel)) {
|
||||||
return $this->associatedModel;
|
return $this->associatedModel;
|
||||||
}
|
}
|
||||||
|
// no break
|
||||||
case 'weightTotal':
|
case 'weightTotal':
|
||||||
return round($this->weight * $this->qty, $decimals);
|
return round($this->weight * $this->qty, $decimals);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user