Code Duplication    Length = 7-8 lines in 2 locations

admin_pages/general_settings/General_Settings_Admin_Page.core.php 2 locations

@@ 692-698 (lines=7) @@
689
			EE_Error::add_success( __( 'The State was added successfully.', 'event_espresso' ) );
690
		}
691
692
		if ( defined( 'DOING_AJAX' )) {
693
			$notices = EE_Error::get_notices( FALSE, FALSE, FALSE );
694
			echo json_encode( array_merge( $notices, array( 'return_data' => $CNT_ISO ) ) );
695
			die();
696
		} else {
697
			$this->_redirect_after_action( $success, 'State', 'added', array( 'action' => 'country_settings' ) );
698
		}
699
	}
700
701
@@ 722-729 (lines=8) @@
719
			do_action( 'AHEE__General_Settings_Admin_Page__delete_state__state_deleted', $CNT_ISO, $STA_ID, array( 'STA_abbrev' => $STA_abbrev ));
720
			EE_Error::add_success( __( 'The State was deleted successfully.', 'event_espresso' ));
721
		}
722
		if ( defined( 'DOING_AJAX' )) {
723
			$notices = EE_Error::get_notices( FALSE, FALSE );
724
			$notices['return_data'] = TRUE;
725
			echo json_encode( $notices );
726
			die();
727
		} else {
728
			$this->_redirect_after_action( $success, 'State', 'deleted', array( 'action' => 'country_settings' ) );
729
		}
730
	}
731
732