Code Duplication    Length = 7-7 lines in 2 locations

classes/class-accommodation.php 1 location

@@ 602-608 (lines=7) @@
599
	/**
600
	 * Set the team memberon each item.
601
	 */
602
	public function set_team_member($id,$team_members) {
603
604
		delete_post_meta($id, 'team_to_'.$this->tab_slug);
605
		foreach($team_members as $team){
606
        	add_post_meta($id,'team_to_'.$this->tab_slug,$team);			
607
		}
608
	}
609
610
	/**
611
	 * Set the safari brand

classes/class-destination.php 1 location

@@ 608-614 (lines=7) @@
605
	/**
606
	 * Set the team memberon each item.
607
	 */
608
	public function set_team_member($id, $team_members)
609
	{
610
611
		delete_post_meta($id, 'team_to_' . $this->tab_slug);
612
		foreach ($team_members as $team) {
613
			add_post_meta($id, 'team_to_' . $this->tab_slug, $team);
614
		}
615
	}
616
617
	/**