Code Duplication    Length = 4-4 lines in 2 locations

includes/cli/class-wc-cli-product.php 2 locations

@@ 1450-1453 (lines=4) @@
1447
		}
1448
1449
		// Product categories
1450
		if ( isset( $data['categories'] ) ) {
1451
			$term_ids = array_unique( array_map( 'intval', (array) $data['categories'] ) );
1452
			wp_set_object_terms( $product_id, $term_ids, 'product_cat' );
1453
		}
1454
1455
		// Product tags
1456
		if ( isset( $data['tags'] ) ) {
@@ 1456-1459 (lines=4) @@
1453
		}
1454
1455
		// Product tags
1456
		if ( isset( $data['tags'] ) ) {
1457
			$term_ids = array_unique( array_map( 'intval', (array) $data['tags'] ) );
1458
			wp_set_object_terms( $product_id, $term_ids, 'product_tag' );
1459
		}
1460
1461
		// Downloadable
1462
		if ( isset( $data['downloadable'] ) ) {