Code Duplication    Length = 4-4 lines in 2 locations

classes/class-importer.php 2 locations

@@ 828-831 (lines=4) @@
825
				delete_post_meta($id,'_thumbnail_id');
826
				add_post_meta($id,'_thumbnail_id',$this->featured_image,true);
827
828
				if(!empty($this->gallery_meta) && !in_array($this->featured_image,$this->gallery_meta)){
829
					add_post_meta($id,'gallery',$this->featured_image,false);
830
					$this->gallery_meta[] = $this->featured_image;
831
				}
832
			}
833
		}
834
	}
@@ 860-863 (lines=4) @@
857
				$new_banner = array('banner_image'=>array('cmb-field-0'=>$this->banner_image));
858
				add_post_meta($id,'image_group',$new_banner,true);
859
860
				if(!empty($this->gallery_meta) && !in_array($this->banner_image,$this->gallery_meta)){
861
					add_post_meta($id,'gallery',$this->banner_image,false);
862
					$this->gallery_meta[] = $this->banner_image;
863
				}
864
			}
865
		}
866
	}