Code Duplication    Length = 5-5 lines in 2 locations

includes/admin/meta-boxes/class-wc-meta-box-order-data.php 2 locations

@@ 256-260 (lines=5) @@
253
							// Display values
254
							echo '<div class="address">';
255
256
								if ( $order->get_formatted_billing_address() ) {
257
									echo '<p><strong>' . __( 'Address', 'woocommerce' ) . ':</strong>' . wp_kses( $order->get_formatted_billing_address(), array( 'br' => array() ) ) . '</p>';
258
								} else {
259
									echo '<p class="none_set"><strong>' . __( 'Address', 'woocommerce' ) . ':</strong> ' . __( 'No billing address set.', 'woocommerce' ) . '</p>';
260
								}
261
262
								foreach ( self::$billing_fields as $key => $field ) {
263
									if ( isset( $field['show'] ) && false === $field['show'] ) {
@@ 341-345 (lines=5) @@
338
							// Display values
339
							echo '<div class="address">';
340
341
								if ( $order->get_formatted_shipping_address() ) {
342
									echo '<p><strong>' . __( 'Address', 'woocommerce' ) . ':</strong>' . wp_kses( $order->get_formatted_shipping_address(), array( 'br' => array() ) ) . '</p>';
343
								} else {
344
									echo '<p class="none_set"><strong>' . __( 'Address', 'woocommerce' ) . ':</strong> ' . __( 'No shipping address set.', 'woocommerce' ) . '</p>';
345
								}
346
347
								if ( ! empty( self::$shipping_fields ) ) {
348
									foreach ( self::$shipping_fields as $key => $field ) {