Code Duplication    Length = 7-7 lines in 2 locations

classes/class-destination.php 1 location

@@ 580-586 (lines=7) @@
577
	/**
578
	 * Set the team memberon each item.
579
	 */
580
	public function set_team_member($id,$team_members) {
581
582
		delete_post_meta($id, 'team_to_'.$this->tab_slug);
583
		foreach($team_members as $team){
584
        	add_post_meta($id,'team_to_'.$this->tab_slug,$team);			
585
		}
586
	}
587
	
588
	/**
589
	 * Saves the longitude and lattitude, as well as sets the map marker.

classes/class-accommodation.php 1 location

@@ 713-719 (lines=7) @@
710
	/**
711
	 * Set the team memberon each item.
712
	 */
713
	public function set_team_member($id,$team_members) {
714
715
		delete_post_meta($id, 'team_to_'.$this->tab_slug);
716
		foreach($team_members as $team){
717
        	add_post_meta($id,'team_to_'.$this->tab_slug,$team);			
718
		}
719
	}
720
721
	/**
722
	 * Set the safari brand