Code Duplication    Length = 3-3 lines in 2 locations

classes/class-accommodation.php 1 location

@@ 522-524 (lines=3) @@
519
			}
520
521
	        //Set the team member if it is there
522
	        if(post_type_exists('team') && false !== $team_members && '' !== $team_members){
523
	        	$this->set_team_member($id,$team_members);
524
	    	}
525
526
	        //Set the safari brand
527
	        if(false !== $safari_brands && '' !== $safari_brands){

classes/class-destination.php 1 location

@@ 546-548 (lines=3) @@
543
			}
544
545
			//Set the team member if it is there
546
			if (post_type_exists('team') && false !== $team_members && '' !== $team_members) {
547
				$this->set_team_member($id, $team_members);
548
			}
549
550
			if (class_exists('LSX_TO_Maps')) {
551
				$this->set_map_data($data, $id, 4);