Code Duplication    Length = 4-4 lines in 2 locations

classes/class-importer.php 2 locations

@@ 817-820 (lines=4) @@
814
				delete_post_meta($id,'_thumbnail_id');
815
				add_post_meta($id,'_thumbnail_id',$this->featured_image,true);
816
817
				if(!empty($this->gallery_meta) && !in_array($this->featured_image,$this->gallery_meta)){
818
					add_post_meta($id,'gallery',$this->featured_image,false);
819
					$this->gallery_meta[] = $this->featured_image;
820
				}
821
			}
822
		}
823
	}
@@ 843-846 (lines=4) @@
840
				$new_banner = array('banner_image'=>array('cmb-field-0'=>$this->banner_image));
841
				add_post_meta($id,'image_group',$new_banner,true);
842
843
				if(!empty($this->gallery_meta) && !in_array($this->banner_image,$this->gallery_meta)){
844
					add_post_meta($id,'gallery',$this->banner_image,false);
845
					$this->gallery_meta[] = $this->banner_image;
846
				}
847
			}
848
		}
849
	}