Code Duplication    Length = 11-11 lines in 2 locations

admin_pages/general_settings/General_Settings_Admin_Page.core.php 2 locations

@@ 816-826 (lines=11) @@
813
            true
814
        );
815
816
        if (defined('DOING_AJAX')) {
817
            $notices = EE_Error::get_notices(false, false, false);
818
            echo wp_json_encode(
819
                array(
820
                    'return_data' => $country_details_settings,
821
                    'success'     => $notices['success'],
822
                    'errors'      => $notices['errors'],
823
                )
824
            );
825
            die();
826
        } else {
827
            return $country_details_settings;
828
        }
829
    }
@@ 927-937 (lines=11) @@
924
            true
925
        );
926
927
        if (defined('DOING_AJAX')) {
928
            $notices = EE_Error::get_notices(false, false, false);
929
            echo wp_json_encode(
930
                array(
931
                    'return_data' => $state_details_settings,
932
                    'success'     => $notices['success'],
933
                    'errors'      => $notices['errors'],
934
                )
935
            );
936
            die();
937
        } else {
938
            return $state_details_settings;
939
        }
940
    }