Skip to content

Commit 83bce67

Browse files
committed
MC-35653:MyAccount :: Order Details :: Payments Methods, shipping address, billing address by Order Number
- Added review comment on naming change
1 parent 324cced commit 83bce67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/SalesGraphQl/Model/Order/OrderAddress.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function getOrderShippingAddress(
2626
): ?array {
2727
$shippingAddress = null;
2828
if ($order->getShippingAddress()) {
29-
$shippingAddress = $this->orderAddressDataFormatter($order->getShippingAddress());
29+
$shippingAddress = $this->formatAddressData($order->getShippingAddress());
3030
}
3131
return $shippingAddress;
3232
}
@@ -42,7 +42,7 @@ public function getOrderBillingAddress(
4242
): ?array {
4343
$billingAddress = null;
4444
if ($order->getBillingAddress()) {
45-
$billingAddress = $this->orderAddressDataFormatter($order->getBillingAddress());
45+
$billingAddress = $this->formatAddressData($order->getBillingAddress());
4646
}
4747
return $billingAddress;
4848
}
@@ -53,7 +53,7 @@ public function getOrderBillingAddress(
5353
* @param OrderAddressInterface $orderAddress
5454
* @return array
5555
*/
56-
private function orderAddressDataFormatter(
56+
private function formatAddressData(
5757
OrderAddressInterface $orderAddress
5858
): array {
5959
return

0 commit comments

Comments
 (0)