Code Duplication    Length = 4-4 lines in 2 locations

includes/admin/meta-boxes/class-wc-meta-box-product-data.php 2 locations

@@ 1184-1187 (lines=4) @@
1181
								$_file_url = realpath( ABSPATH . $file_url );
1182
							}
1183
1184
							if ( ! apply_filters( 'woocommerce_downloadable_file_exists', file_exists( $_file_url ), $file_url ) ) {
1185
								WC_Admin_Meta_Boxes::add_error( sprintf( __( 'The downloadable file %s cannot be used as it does not exist on the server.', 'woocommerce' ), '<code>' . $file_url . '</code>' ) );
1186
								continue;
1187
							}
1188
						}
1189
1190
						$files[ $file_hash ] = array(
@@ 1475-1478 (lines=4) @@
1472
							}
1473
1474
							// Validate the file exists
1475
							if ( 'relative' === $file_is && ! apply_filters( 'woocommerce_downloadable_file_exists', file_exists( $file_url ), $file_url ) ) {
1476
								WC_Admin_Meta_Boxes::add_error( sprintf( __( '#%s &ndash; The downloadable file %s cannot be used as it does not exist on the server.', 'woocommerce' ), $variation_id, '<code>' . $file_url . '</code>' ) );
1477
								continue;
1478
							}
1479
1480
							$files[ $file_hash ] = array(
1481
								'name' => $file_name,