Skip to content

Commit

Permalink
PAYOSWXP-113: Improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Müller committed Jan 24, 2024
1 parent d392502 commit 6f56cf9
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ protected function getOrder(string $orderId, Context $context): OrderEntity

protected function applyB2bParameters(OrderEntity $order, array &$parameters): void
{
/** @var OrderAddressCollection $addresses */
$addresses = $order->getAddresses();
/** @var OrderAddressEntity $billingAddress */
$billingAddress = $addresses->get($order->getBillingAddressId());
$billingAddress = $order->getAddresses()?->get($order->getBillingAddressId());

if ($billingAddress === null) {
return;
Expand Down

0 comments on commit 6f56cf9

Please sign in to comment.