Code Duplication    Length = 4-4 lines in 2 locations

classes/class-importer.php 2 locations

@@ 781-784 (lines=4) @@
778
				delete_post_meta($id,'_thumbnail_id');
779
				add_post_meta($id,'_thumbnail_id',$this->featured_image,true);
780
781
				if(!empty($this->gallery_meta) && !in_array($this->featured_image,$this->gallery_meta)){
782
					add_post_meta($id,'gallery',$this->featured_image,false);
783
					$this->gallery_meta[] = $this->featured_image;
784
				}
785
			}
786
		}
787
	}
@@ 801-804 (lines=4) @@
798
				$new_banner = array('banner_image'=>array('cmb-field-0'=>$this->banner_image));
799
				add_post_meta($id,'image_group',$new_banner,true);
800
801
				if(!empty($this->gallery_meta) && !in_array($this->banner_image,$this->gallery_meta)){
802
					add_post_meta($id,'gallery',$this->banner_image,false);
803
					$this->gallery_meta[] = $this->banner_image;
804
				}
805
			}
806
		}
807
	}