Code Duplication    Length = 11-11 lines in 2 locations

admin_pages/general_settings/General_Settings_Admin_Page.core.php 2 locations

@@ 887-897 (lines=11) @@
884
            true
885
        );
886
887
        if (defined('DOING_AJAX')) {
888
            $notices = EE_Error::get_notices(false, false, false);
889
            echo wp_json_encode(array(
890
                'return_data' => $country_details_settings,
891
                'success'     => $notices['success'],
892
                'errors'      => $notices['errors'],
893
            ));
894
            die();
895
        } else {
896
            return $country_details_settings;
897
        }
898
    }
899
900
@@ 979-989 (lines=11) @@
976
            true
977
        );
978
979
        if (defined('DOING_AJAX')) {
980
            $notices = EE_Error::get_notices(false, false, false);
981
            echo wp_json_encode(array(
982
                'return_data' => $state_details_settings,
983
                'success'     => $notices['success'],
984
                'errors'      => $notices['errors'],
985
            ));
986
            die();
987
        } else {
988
            return $state_details_settings;
989
        }
990
    }
991
992