Code Duplication    Length = 7-7 lines in 2 locations

classes/class-accommodation.php 1 location

@@ 588-594 (lines=7) @@
585
	/**
586
	 * Set the team memberon each item.
587
	 */
588
	public function set_team_member($id,$team_members) {
589
590
		delete_post_meta($id, 'team_to_'.$this->tab_slug);
591
		foreach($team_members as $team){
592
        	add_post_meta($id,'team_to_'.$this->tab_slug,$team);			
593
		}
594
	}
595
596
	/**
597
	 * Set the safari brand

classes/class-destination.php 1 location

@@ 626-632 (lines=7) @@
623
	/**
624
	 * Set the team memberon each item.
625
	 */
626
	public function set_team_member($id, $team_members)
627
	{
628
629
		delete_post_meta($id, 'team_to_' . $this->tab_slug);
630
		foreach ($team_members as $team) {
631
			add_post_meta($id, 'team_to_' . $this->tab_slug, $team);
632
		}
633
	}
634
635
	/**