Code Duplication    Length = 13-14 lines in 2 locations

classes/class-wetu-importer-tours.php 1 location

@@ 1180-1193 (lines=14) @@
1177
						'cropping' => 'c',
1178
					) );
1179
1180
					if ( false !== $temp_banner ) {
1181
						$this->banner_image = $temp_banner;
1182
1183
						delete_post_meta( $id,'image_group' );
1184
1185
						$new_banner = array(
1186
							'banner_image' => array(
1187
								'cmb-field-0' => $this->banner_image,
1188
							),
1189
						);
1190
						add_post_meta( $id,'image_group',$new_banner,true );
1191
						$image_set = true;
1192
					}
1193
				}
1194
				$counter++;
1195
			}
1196
		}

classes/class-wetu-importer.php 1 location

@@ 954-966 (lines=13) @@
951
				));
952
			}
953
954
			if ( false !== $temp_banner ) {
955
				$this->banner_image = $temp_banner;
956
957
				delete_post_meta( $id,'image_group' );
958
959
				$new_banner = array(
960
					'banner_image' => array(
961
						'cmb-field-0' => $this->banner_image,
962
					),
963
				);
964
965
				add_post_meta( $id,'image_group',$new_banner,true );
966
			}
967
		}
968
	}
969