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

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