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

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