Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 654-660 (lines=7) @@
651
	/**
652
	 * Set the team memberon each item.
653
	 */
654
	public function set_team_member( $id, $team_members ) {
655
		delete_post_meta( $id, 'team_to_' . $this->tab_slug );
656
657
		foreach ( $team_members as $team ) {
658
			add_post_meta( $id,'team_to_' . $this->tab_slug,$team );
659
		}
660
	}
661
662
	/**
663
	 * Set the safari brand

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

@@ 700-706 (lines=7) @@
697
	/**
698
	 * Set the team memberon each item.
699
	 */
700
	public function set_team_member( $id, $team_members ) {
701
		delete_post_meta( $id, 'team_to_' . $this->tab_slug );
702
703
		foreach ( $team_members as $team ) {
704
			add_post_meta( $id, 'team_to_' . $this->tab_slug, $team );
705
		}
706
	}
707
708
	/**
709
	 * Saves the room data