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

@@ 1071-1075 (lines=5) @@
1068
						$loop ++;
1069
						$file_counter ++;
1070
1071
						if ( isset( $file['name'] ) ) {
1072
							$file_count = $file['name'];
1073
						} else {
1074
							$file_count = sprintf( __( 'File %d', 'woocommerce' ), $file_counter );
1075
						}
1076
						include( 'admin/meta-boxes/views/html-order-download-permission.php' );
1077
					}
1078
				}