Skip to content

Commit

Permalink
Merge pull request #2383 from coreshop/coding-standard/refactor-4.0
Browse files Browse the repository at this point in the history
[CS] Refactor
  • Loading branch information
dpfaffenbauer authored Oct 2, 2023
2 parents 3e087a6 + 89e350e commit 304b7ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public function marshalForCache(Concrete $concrete, mixed $data): mixed
}

return [
'value' => $data->getValue(),
'value' => $data->getValue(),
'currency' => $data->getCurrency()->getId(),
];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ public function process(ContainerBuilder $container)
);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ public function process(OrderInterface $cart): void
$item->setName($product->getName($locale), $locale);
}

$item->setObjectId((float)$product->getId());
$item->setObjectId((float) $product->getId());

if (($product instanceof AbstractObject) && $product->getType() === AbstractObject::OBJECT_TYPE_VARIANT) {
$mainProduct = $this->findVariantMain($product);
$item->setMainObjectId((float)$mainProduct->getId());
$item->setMainObjectId((float) $mainProduct->getId());
}
}
}
Expand Down

0 comments on commit 304b7ec

Please sign in to comment.