Code Duplication    Length = 4-6 lines in 2 locations

classes/class-tours.php 2 locations

@@ 879-882 (lines=4) @@
876
				}
877
			}
878
879
			if ('' !== $dest_id && false !== $dest_id) {
880
				$this->save_custom_field($dest_id, 'destination_to_tour', $id, false, false);
881
				$this->save_custom_field($id, 'tour_to_destination', $dest_id, false, false);
882
			}
883
		}
884
		return $dest_id;
885
	}
@@ 928-933 (lines=6) @@
925
            }
926
        }
927
928
        if ('' !== $country_id && false !== $country_id) {
929
            $this->save_custom_field($country_id, 'destination_to_tour', $id, false, false);
930
            $this->save_custom_field($id, 'tour_to_destination', $country_id, false, false);
931
932
            return $country_id;
933
        }
934
	}
935
}
936
$wetu_importer_tours = new WETU_Importer_Tours();