Code Duplication    Length = 4-4 lines in 2 locations

classes/class-importer.php 2 locations

@@ 811-814 (lines=4) @@
808
				delete_post_meta($id,'_thumbnail_id');
809
				add_post_meta($id,'_thumbnail_id',$this->featured_image,true);
810
811
				if(!empty($this->gallery_meta) && !in_array($this->featured_image,$this->gallery_meta)){
812
					add_post_meta($id,'gallery',$this->featured_image,false);
813
					$this->gallery_meta[] = $this->featured_image;
814
				}
815
			}
816
		}
817
	}
@@ 831-834 (lines=4) @@
828
				$new_banner = array('banner_image'=>array('cmb-field-0'=>$this->banner_image));
829
				add_post_meta($id,'image_group',$new_banner,true);
830
831
				if(!empty($this->gallery_meta) && !in_array($this->banner_image,$this->gallery_meta)){
832
					add_post_meta($id,'gallery',$this->banner_image,false);
833
					$this->gallery_meta[] = $this->banner_image;
834
				}
835
			}
836
		}
837
	}