Code Duplication    Length = 5-7 lines in 2 locations

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 3008-3012 (lines=5) @@
3005
        $cart = EE_Registry::instance()->SSN->cart();
3006
        $step = ! $cart instanceof EE_Cart ? 'ticket' : 'questions';
3007
        // if doing ajax then we need to verify the nonce
3008
        if (defined('DOING_AJAX')) {
3009
            $nonce = isset($this->_req_data[ $this->_req_nonce ])
3010
                ? sanitize_text_field($this->_req_data[ $this->_req_nonce ]) : '';
3011
            $this->_verify_nonce($nonce, $this->_req_nonce);
3012
        }
3013
        switch ($step) {
3014
            case 'ticket':
3015
                // process ticket selection

core/admin/EE_Admin_Page.core.php 1 location

@@ 1030-1036 (lines=7) @@
1027
        $nonce_check = isset($this->_route_config['require_nonce'])
1028
            ? $this->_route_config['require_nonce']
1029
            : true;
1030
        if ($this->_req_action !== 'default' && $nonce_check) {
1031
            // set nonce from post data
1032
            $nonce = isset($this->_req_data[ $this->_req_nonce ])
1033
                ? sanitize_text_field($this->_req_data[ $this->_req_nonce ])
1034
                : '';
1035
            $this->_verify_nonce($nonce, $this->_req_nonce);
1036
        }
1037
        // set the nav_tabs array but ONLY if this is  UI_request
1038
        if ($this->_is_UI_request) {
1039
            $this->_set_nav_tabs();