Code Duplication    Length = 11-11 lines in 2 locations

includes/import/class-wc-product-csv-importer.php 2 locations

@@ 978-988 (lines=11) @@
975
				$sku_exists  = $product && 'importing' !== $product->get_status();
976
			}
977
978
			if ( $id_exists && ! $update_existing ) {
979
				$data['skipped'][] = new WP_Error(
980
					'woocommerce_product_importer_error',
981
					esc_html__( 'A product with this ID already exists.', 'woocommerce' ),
982
					array(
983
						'id'  => $id,
984
						'row' => $this->get_row_id( $parsed_data ),
985
					)
986
				);
987
				continue;
988
			}
989
990
			if ( $sku_exists && ! $update_existing ) {
991
				$data['skipped'][] = new WP_Error(
@@ 990-1000 (lines=11) @@
987
				continue;
988
			}
989
990
			if ( $sku_exists && ! $update_existing ) {
991
				$data['skipped'][] = new WP_Error(
992
					'woocommerce_product_importer_error',
993
					esc_html__( 'A product with this SKU already exists.', 'woocommerce' ),
994
					array(
995
						'sku' => esc_attr( $sku ),
996
						'row' => $this->get_row_id( $parsed_data ),
997
					)
998
				);
999
				continue;
1000
			}
1001
1002
			if ( $update_existing && ( $id || $sku ) && ! $id_exists && ! $sku_exists ) {
1003
				$data['skipped'][] = new WP_Error(