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