Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 54-58 (lines=5) @@
51
52
						// Show file title instead of count if set
53
						$file = $product->get_file( $download->download_id );
54
						if ( isset( $file['name'] ) ) {
55
							$file_count = $file['name'];
56
						} else {
57
							$file_count = sprintf( __( 'File %d', 'woocommerce' ), $file_counter );
58
						}
59
60
						include( 'views/html-order-download-permission.php' );
61

includes/class-wc-ajax.php 1 location

@@ 1088-1092 (lines=5) @@
1085
						$loop ++;
1086
						$file_counter ++;
1087
1088
						if ( isset( $file['name'] ) ) {
1089
							$file_count = $file['name'];
1090
						} else {
1091
							$file_count = sprintf( __( 'File %d', 'woocommerce' ), $file_counter );
1092
						}
1093
						include( 'admin/meta-boxes/views/html-order-download-permission.php' );
1094
					}
1095
				}