Code Duplication    Length = 7-7 lines in 2 locations

classes/class-wetu-importer-accommodation.php 1 location

@@ 643-649 (lines=7) @@
640
	/**
641
	 * Set the team memberon each item.
642
	 */
643
	public function set_team_member( $id, $team_members ) {
644
		delete_post_meta( $id, 'team_to_' . $this->tab_slug );
645
646
		foreach ( $team_members as $team ) {
647
			add_post_meta( $id,'team_to_' . $this->tab_slug,$team );
648
		}
649
	}
650
651
	/**
652
	 * Set the safari brand

classes/class-wetu-importer-destination.php 1 location

@@ 660-666 (lines=7) @@
657
	/**
658
	 * Set the team memberon each item.
659
	 */
660
	public function set_team_member( $id, $team_members ) {
661
		delete_post_meta( $id, 'team_to_' . $this->tab_slug );
662
663
		foreach ( $team_members as $team ) {
664
			add_post_meta( $id, 'team_to_' . $this->tab_slug, $team );
665
		}
666
	}
667
668
	/**
669
	 * Saves the room data