Code Duplication    Length = 4-6 lines in 2 locations

classes/class-tours.php 2 locations

@@ 892-895 (lines=4) @@
889
				}
890
			}
891
892
			if ('' !== $dest_id && false !== $dest_id) {
893
				$this->save_custom_field($dest_id, 'destination_to_tour', $id, false, false);
894
				$this->save_custom_field($id, 'tour_to_destination', $dest_id, false, false);
895
			}
896
		}
897
		return $dest_id;
898
	}
@@ 941-946 (lines=6) @@
938
            }
939
        }
940
941
        if ('' !== $country_id && false !== $country_id) {
942
            $this->save_custom_field($country_id, 'destination_to_tour', $id, false, false);
943
            $this->save_custom_field($id, 'tour_to_destination', $country_id, false, false);
944
945
            return $country_id;
946
        }
947
	}
948
}
949
$wetu_importer_tours = new WETU_Importer_Tours();