Code Duplication    Length = 7-7 lines in 2 locations

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

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

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

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