Code Duplication    Length = 11-16 lines in 2 locations

admin_pages/registrations/Registrations_Admin_Page.core.php 2 locations

@@ 3087-3097 (lines=11) @@
3084
                } else {
3085
                    $query_args['step_error'] = $this->_req_data['step_error'] = true;
3086
                }
3087
                if (defined('DOING_AJAX')) {
3088
                    $this->new_registration(); //display next step
3089
                } else {
3090
                    $query_args = array(
3091
                        'action'                  => 'new_registration',
3092
                        'processing_registration' => 1,
3093
                        'event_id'                => $this->_reg_event->ID(),
3094
                        'uts'                     => time(),
3095
                    );
3096
                    $this->_redirect_after_action(
3097
                        false,
3098
                        '',
3099
                        '',
3100
                        $query_args,
@@ 3120-3135 (lines=16) @@
3117
                        $grand_total->save_this_and_descendants_to_txn();
3118
                    }
3119
                }
3120
                if ( ! $transaction instanceof EE_Transaction) {
3121
                    $query_args = array(
3122
                        'action'                  => 'new_registration',
3123
                        'processing_registration' => 2,
3124
                        'event_id'                => $this->_reg_event->ID(),
3125
                        'uts'                     => time(),
3126
                    );
3127
                    if (defined('DOING_AJAX')) {
3128
                        //display registration form again because there are errors (maybe validation?)
3129
                        $this->new_registration();
3130
                        return;
3131
                    } else {
3132
                        $this->_redirect_after_action(
3133
                            false,
3134
                            '',
3135
                            '',
3136
                            $query_args,
3137
                            true
3138
                        );