Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1024-1026 (lines=3) @@
1021
						$this->current_destinations[ $day['destination_content_entity_id'] ] = $dest_id;
1022
1023
						// If there are images attached then use the destination.
1024
						if ( isset( $destination_data[0]['content']['images'] ) && ! empty( $destination_data[0]['content']['images'] ) ) {
1025
							$this->destination_images[ $id ][] = array( $dest_id, $day['destination_content_entity_id'] );
1026
						}
1027
1028
						$this->save_custom_field( $day['destination_content_entity_id'], 'lsx_wetu_id', $dest_id );
1029
					}
@@ 1094-1096 (lines=3) @@
1091
				$this->current_destinations[ $country_wetu_id ] = $country_id;
1092
1093
				// Check if there are images and save fore use later.
1094
				if ( isset( $country_data[0]['content']['images'] ) && ! empty( $country_data[0]['content']['images'] ) ) {
1095
					$this->destination_images[ $id ][] = array( $country_id,$country_wetu_id );
1096
				}
1097
1098
				//Save the wetu field
1099
				$this->save_custom_field( $country_wetu_id, 'lsx_wetu_id', $country_id );