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
	}
@@ 849-852 (lines=4) @@
846
				$new_banner = array('banner_image'=>array('cmb-field-0'=>$this->banner_image));
847
				add_post_meta($id,'image_group',$new_banner,true);
848
849
				if(!empty($this->gallery_meta) && !in_array($this->banner_image,$this->gallery_meta)){
850
					add_post_meta($id,'gallery',$this->banner_image,false);
851
					$this->gallery_meta[] = $this->banner_image;
852
				}
853
			}
854
		}
855
	}