Code Duplication    Length = 7-7 lines in 2 locations

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

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

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

@@ 690-696 (lines=7) @@
687
	/**
688
	 * Set the team memberon each item.
689
	 */
690
	public function set_team_member( $id, $team_members ) {
691
		delete_post_meta( $id, 'team_to_' . $this->tab_slug );
692
693
		foreach ( $team_members as $team ) {
694
			add_post_meta( $id, 'team_to_' . $this->tab_slug, $team );
695
		}
696
	}
697
698
	/**
699
	 * Saves the room data