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

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