Code Duplication    Length = 3-3 lines in 2 locations

classes/class-accommodation.php 1 location

@@ 611-613 (lines=3) @@
608
	        	}
609
	        }
610
	        //Setup some default for use in the import
611
	        if(false !== $importable_content && (in_array('gallery',$importable_content) || in_array('banner_image',$importable_content) || in_array('featured_image',$importable_content))){
612
				$this->find_attachments($id);
613
			}
614
615
	        //Set the team member if it is there
616
	        if(post_type_exists('team') && false !== $team_members && '' !== $team_members){

classes/class-tours.php 1 location

@@ 557-559 (lines=3) @@
554
555
		//TODO Test These
556
		//Setup some default for use in the import
557
		if(false !== $importable_content && (in_array('itinerary_gallery',$importable_content) || in_array('gallery',$importable_content) || in_array('banner_image',$importable_content) || in_array('featured_image',$importable_content))){
558
			$this->find_attachments($id);
559
		}
560
        //Set the featured image
561
        //TODO Test These
562
        if(false !== $importable_content && in_array('featured_image',$importable_content)){