Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Oct 10, 2024
1 parent eb53268 commit eb1a7ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cart/Models/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function removeItem(CartItemContract $item): void
public function removeProduct(Buyable $product): void
{
$item = $this->items()->ofCart($this)->byProduct($product)->first();
if($item){
if ($item) {
$this->removeItem($item);
}
}
Expand Down

0 comments on commit eb1a7ed

Please sign in to comment.