Code Duplication    Length = 3-3 lines in 2 locations

classes/class-accommodation.php 1 location

@@ 596-598 (lines=3) @@
593
	        	}
594
	        }
595
	        //Setup some default for use in the import
596
	        if(false !== $importable_content && (in_array('gallery',$importable_content) || in_array('banner_image',$importable_content) || in_array('featured_image',$importable_content))){
597
				$this->find_attachments($id);
598
			}
599
600
	        //Set the team member if it is there
601
	        if(post_type_exists('team') && false !== $team_members && '' !== $team_members){

classes/class-tours.php 1 location

@@ 533-535 (lines=3) @@
530
531
		//TODO Test These
532
		//Setup some default for use in the import
533
		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))){
534
			$this->find_attachments($id);
535
		}
536
        //Set the featured image
537
        //TODO Test These
538
        if(false !== $importable_content && in_array('featured_image',$importable_content)){