Code Duplication    Length = 12-15 lines in 2 locations

modules/ticket_selector/ProcessTicketSelector.php 1 location

@@ 108-122 (lines=15) @@
105
    {
106
        do_action( 'EED_Ticket_Selector__process_ticket_selections__before' );
107
        // do we have an event id?
108
        if ( ! \EE_Registry::instance()->REQ->is_set( 'tkt-slctr-event-id' ) ) {
109
            // $_POST['tkt-slctr-event-id'] was not set ?!?!?!?
110
            \EE_Error::add_error(
111
                sprintf(
112
                    __(
113
                        'An event id was not provided or was not received.%sPlease click the back button on your browser and try again.',
114
                        'event_espresso'
115
                    ),
116
                    '<br/>'
117
                ),
118
                __FILE__,
119
                __FUNCTION__,
120
                __LINE__
121
            );
122
        }
123
        //if event id is valid
124
        $id = absint( \EE_Registry::instance()->REQ->get( 'tkt-slctr-event-id' ) );
125
        // check nonce

modules/thank_you_page/EED_Thank_You_Page.module.php 1 location

@@ 223-234 (lines=12) @@
220
            return;
221
        }
222
        // only do thank you page stuff if we have a REG_url_link in the url
223
        if (WP_DEBUG && ! EE_Registry::instance()->REQ->is_set('e_reg_url_link')) {
224
            EE_Error::add_error(
225
                __(
226
                    'No transaction information could be retrieved because the registration URL link is missing or invalid.',
227
                    'event_espresso'
228
                ),
229
                __FILE__,
230
                __FUNCTION__,
231
                __LINE__
232
            );
233
            return;
234
        }
235
        // check for reg_url_link
236
        $this->_reg_url_link = EE_Registry::instance()->REQ->get('e_reg_url_link');
237
    }