Skip to content

Commit

Permalink
MOL-1297: codestyle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Feb 16, 2024
1 parent 8666f5d commit cff11b0
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,19 +151,34 @@ private function isSubscriptionCart(Cart $cart): bool
return false;
}

/**
* @param Cart $cart
* @param array<mixed> $cacheParts
* @return array<mixed>
*/
private function addCartAmountKey(Cart $cart, array $cacheParts): array
{
$cacheParts[] = $cart->getPrice()->getTotalPrice();
return $cacheParts;
}

private function addCurrencyCodeKey(SalesChannelContext $context, array $cacheParts)
/**
* @param SalesChannelContext $context
* @param array<mixed> $cacheParts
* @return array<mixed>
*/
private function addCurrencyCodeKey(SalesChannelContext $context, array $cacheParts):array
{
$cacheParts[] = $context->getCurrency()->getIsoCode();
return $cacheParts;
}

private function addBillingAddressKey(SalesChannelContext $context, array $cacheParts)
/**
* @param SalesChannelContext $context
* @param array<mixed> $cacheParts
* @return array<mixed>
*/
private function addBillingAddressKey(SalesChannelContext $context, array $cacheParts):array
{
$customer = $context->getCustomer();

Expand Down

0 comments on commit cff11b0

Please sign in to comment.