Code Duplication    Length = 4-4 lines in 2 locations

core/db_classes/EE_Import.class.php 2 locations

@@ 320-323 (lines=4) @@
317
		//save the mapping from old db to new db in case they try re-importing the same data from the same website again
318
		update_option('ee_id_mapping_from'.sanitize_title($old_site_url),$old_db_to_new_db_mapping);
319
320
		if ( $this->_total_updates > 0 ) {
321
			EE_Error::add_success( sprintf(__("%s existing records in the database were updated.", "event_espresso"),$this->_total_updates));
322
			$success = true;
323
		}
324
		if ( $this->_total_inserts > 0 ) {
325
			EE_Error::add_success(sprintf(__("%s new records were added to the database.", "event_espresso"),$this->_total_inserts));
326
			$success = true;
@@ 324-327 (lines=4) @@
321
			EE_Error::add_success( sprintf(__("%s existing records in the database were updated.", "event_espresso"),$this->_total_updates));
322
			$success = true;
323
		}
324
		if ( $this->_total_inserts > 0 ) {
325
			EE_Error::add_success(sprintf(__("%s new records were added to the database.", "event_espresso"),$this->_total_inserts));
326
			$success = true;
327
		}
328
329
		if ( $this->_total_update_errors > 0 ) {
330
			EE_Error::add_error(sprintf(__("'One or more errors occurred, and a total of %s existing records in the database were <strong>not</strong> updated.'", "event_espresso"),$this->_total_update_errors), __FILE__, __FUNCTION__, __LINE__ );