| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function saveAddresses(OrderInterface $order): void |
||
| 39 | { |
||
| 40 | /** @var CustomerInterface $customer */ |
||
| 41 | $customer = $order->getCustomer(); |
||
| 42 | if (null === $customer->getUser()) { |
||
| 43 | return; |
||
| 44 | } |
||
| 45 | |||
| 46 | $this->addAddress($customer, $order->getBillingAddress()); |
||
| 47 | $this->addAddress($customer, $order->getShippingAddress()); |
||
| 48 | } |
||
| 49 | |||
| 61 |