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

@@ 1078-1082 (lines=5) @@
1075
						$loop ++;
1076
						$file_counter ++;
1077
1078
						if ( isset( $file['name'] ) ) {
1079
							$file_count = $file['name'];
1080
						} else {
1081
							$file_count = sprintf( __( 'File %d', 'woocommerce' ), $file_counter );
1082
						}
1083
						include( 'admin/meta-boxes/views/html-order-download-permission.php' );
1084
					}
1085
				}