Code Duplication    Length = 7-14 lines in 2 locations

templates/emails/email-addresses.php 1 location

@@ 30-36 (lines=7) @@
27
28
			<p class="text"><?php echo $order->get_formatted_billing_address(); ?></p>
29
		</td>
30
		<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && ( $shipping = $order->get_formatted_shipping_address() ) ) : ?>
31
			<td class="td" style="text-align:left; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" valign="top" width="50%">
32
				<h3><?php _e( 'Shipping address', 'woocommerce' ); ?></h3>
33
34
				<p class="text"><?php echo $shipping; ?></p>
35
			</td>
36
		<?php endif; ?>
37
	</tr>
38
</table>
39

templates/order/order-details-customer.php 1 location

@@ 64-77 (lines=14) @@
61
	<?php echo ( $address = $order->get_formatted_billing_address() ) ? $address : __( 'N/A', 'woocommerce' ); ?>
62
</address>
63
64
<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) : ?>
65
66
	</div><!-- /.col-1 -->
67
	<div class="col-2">
68
		<header class="title">
69
			<h3><?php _e( 'Shipping Address', 'woocommerce' ); ?></h3>
70
		</header>
71
		<address>
72
			<?php echo ( $address = $order->get_formatted_shipping_address() ) ? $address : __( 'N/A', 'woocommerce' ); ?>
73
		</address>
74
	</div><!-- /.col-2 -->
75
</div><!-- /.col2-set -->
76
77
<?php endif; ?>
78