Code Duplication    Length = 3-3 lines in 2 locations

classes/class-wetu-importer-tours.php 2 locations

@@ 1058-1060 (lines=3) @@
1055
						$this->current_destinations[ $day['destination_content_entity_id'] ] = $dest_id;
1056
1057
						// If there are images attached then use the destination.
1058
						if ( isset( $destination_data[0]['content']['images'] ) && ! empty( $destination_data[0]['content']['images'] ) ) {
1059
							$this->destination_images[ $id ][] = array( $dest_id, $day['destination_content_entity_id'] );
1060
						}
1061
1062
						$this->save_custom_field( $day['destination_content_entity_id'], 'lsx_wetu_id', $dest_id );
1063
					}
@@ 1130-1132 (lines=3) @@
1127
					$this->current_destinations[ $country_wetu_id ] = $country_id;
1128
1129
					// Check if there are images and save fore use later.
1130
					if ( isset( $country_data[0]['content']['images'] ) && ! empty( $country_data[0]['content']['images'] ) ) {
1131
						$this->destination_images[ $id ][] = array( $country_id,$country_wetu_id );
1132
					}
1133
1134
					//Save the wetu field
1135
					$this->save_custom_field( $country_wetu_id, 'lsx_wetu_id', $country_id );