Code Duplication    Length = 6-6 lines in 2 locations

includes/class-wc-emails.php 2 locations

@@ 280-285 (lines=6) @@
277
	public function order_meta( $order, $sent_to_admin = false, $plain_text = false ) {
278
		$fields = array();
279
280
		if ( $order->customer_note ) {
281
			$fields['customer_note'] = array(
282
				'label' => __( 'Note', 'woocommerce' ),
283
				'value' => wptexturize( $order->customer_note )
284
			);
285
		}
286
287
		$fields = apply_filters( 'woocommerce_email_order_meta_fields', $fields, $sent_to_admin, $order );
288
@@ 357-362 (lines=6) @@
354
			);
355
	    }
356
357
	    if ( $order->billing_phone ) {
358
			$fields['billing_phone'] = array(
359
				'label' => __( 'Tel', 'woocommerce' ),
360
				'value' => wptexturize( $order->billing_phone )
361
			);
362
	    }
363
364
		$fields = array_filter( apply_filters( 'woocommerce_email_customer_details_fields', $fields, $sent_to_admin, $order ), array( $this, 'customer_detail_field_is_valid' ) );
365