Code Duplication    Length = 5-5 lines in 2 locations

includes/admin/meta-boxes/class-wc-meta-box-order-data.php 1 location

@@ 312-316 (lines=5) @@
309
											}
310
										}
311
312
										if ( ! $found_method && ! empty( $payment_method ) ) {
313
											echo '<option value="' . esc_attr( $payment_method ) . '" selected="selected">' . __( 'Other', 'woocommerce' ) . '</option>';
314
										} else {
315
											echo '<option value="other">' . __( 'Other', 'woocommerce' ) . '</option>';
316
										}
317
									?>
318
								</select>
319
							</p>

includes/admin/meta-boxes/views/html-order-shipping.php 1 location

@@ 40-44 (lines=5) @@
37
							}
38
						}
39
40
						if ( ! $found_method && ! empty( $method_id ) ) {
41
							echo '<option value="' . esc_attr( $method_id ) . '" selected="selected">' . __( 'Other', 'woocommerce' ) . '</option>';
42
						} else {
43
							echo '<option value="other">' . __( 'Other', 'woocommerce' ) . '</option>';
44
						}
45
					?>
46
				</optgroup>
47
			</select>