Code Duplication    Length = 5-5 lines in 2 locations

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

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

includes/class-wc-ajax.php 1 location

@@ 1064-1068 (lines=5) @@
1061
						$loop ++;
1062
						$file_counter ++;
1063
1064
						if ( isset( $file['name'] ) ) {
1065
							$file_count = $file['name'];
1066
						} else {
1067
							$file_count = sprintf( __( 'File %d', 'woocommerce' ), $file_counter );
1068
						}
1069
						include( 'admin/meta-boxes/views/html-order-download-permission.php' );
1070
					}
1071
				}