Code Duplication    Length = 3-3 lines in 2 locations

classes/class-accommodation.php 1 location

@@ 508-510 (lines=3) @@
505
			}
506
507
	        //Set the team member if it is there
508
	        if(post_type_exists('team') && false !== $team_members && '' !== $team_members){
509
	        	$this->set_team_member($id,$team_members);
510
	    	}
511
512
	        //Set the safari brand
513
	        if(false !== $safari_brands && '' !== $safari_brands){

classes/class-destination.php 1 location

@@ 564-566 (lines=3) @@
561
			}
562
563
			//Set the team member if it is there
564
			if (post_type_exists('team') && false !== $team_members && '' !== $team_members) {
565
				$this->set_team_member($id, $team_members);
566
			}
567
568
			if (class_exists('LSX_TO_Maps')) {
569
				$this->set_map_data($data, $id, 4);