Skip to content

Commit

Permalink
StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Henninger committed Jul 28, 2020
1 parent 5e3e584 commit 085693d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CartItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,12 @@ public function __get($attribute)
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);
}
Expand Down

0 comments on commit 085693d

Please sign in to comment.