Code Duplication    Length = 7-7 lines in 2 locations

classes/class-accommodation.php 1 location

@@ 682-688 (lines=7) @@
679
	/**
680
	 * Set the team memberon each item.
681
	 */
682
	public function set_team_member($id,$team_members) {
683
684
		delete_post_meta($id, 'team_to_'.$this->tab_slug);
685
		foreach($team_members as $team){
686
        	add_post_meta($id,'team_to_'.$this->tab_slug,$team);			
687
		}
688
	}
689
690
	/**
691
	 * Set the safari brand

classes/class-destination.php 1 location

@@ 549-555 (lines=7) @@
546
	/**
547
	 * Set the team memberon each item.
548
	 */
549
	public function set_team_member($id,$team_members) {
550
551
		delete_post_meta($id, 'team_to_'.$this->tab_slug);
552
		foreach($team_members as $team){
553
        	add_post_meta($id,'team_to_'.$this->tab_slug,$team);			
554
		}
555
	}
556
	
557
	/**
558
	 * Saves the longitude and lattitude, as well as sets the map marker.