Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 666-672 (lines=7) @@
663
	/**
664
	 * Set the team memberon each item.
665
	 */
666
	public function set_team_member( $id, $team_members ) {
667
		delete_post_meta( $id, 'team_to_' . $this->tab_slug );
668
669
		foreach ( $team_members as $team ) {
670
			add_post_meta( $id,'team_to_' . $this->tab_slug,$team );
671
		}
672
	}
673
674
	/**
675
	 * Set the safari brand

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

@@ 709-715 (lines=7) @@
706
	/**
707
	 * Set the team memberon each item.
708
	 */
709
	public function set_team_member( $id, $team_members ) {
710
		delete_post_meta( $id, 'team_to_' . $this->tab_slug );
711
712
		foreach ( $team_members as $team ) {
713
			add_post_meta( $id, 'team_to_' . $this->tab_slug, $team );
714
		}
715
	}
716
717
	/**
718
	 * Saves the room data