Code Duplication    Length = 4-6 lines in 2 locations

classes/class-tours.php 2 locations

@@ 814-817 (lines=4) @@
811
				}
812
			}
813
814
			if ('' !== $dest_id && false !== $dest_id) {
815
				$this->save_custom_field($dest_id, 'destination_to_tour', $id, false, false);
816
				$this->save_custom_field($id, 'tour_to_destination', $dest_id, false, false);
817
			}
818
		}
819
		return $dest_id;
820
	}
@@ 858-863 (lines=6) @@
855
            }
856
        }
857
858
        if ('' !== $country_id && false !== $country_id) {
859
            $this->save_custom_field($country_id, 'destination_to_tour', $id, false, false);
860
            $this->save_custom_field($id, 'tour_to_destination', $country_id, false, false);
861
862
            return $country_id;
863
        }
864
	}
865
}
866
$wetu_importer_tours = new WETU_Importer_Tours();