Code Duplication    Length = 12-15 lines in 2 locations

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
    }

modules/ticket_selector/ProcessTicketSelector.php 1 location

@@ 139-153 (lines=15) @@
136
            exit();
137
        }
138
        // do we have an event id?
139
        if (! EE_Registry::instance()->REQ->is_set('tkt-slctr-event-id')) {
140
            // $_POST['tkt-slctr-event-id'] was not set ?!?!?!?
141
            EE_Error::add_error(
142
                sprintf(
143
                    __(
144
                        'An event id was not provided or was not received.%sPlease click the back button on your browser and try again.',
145
                        'event_espresso'
146
                    ),
147
                    '<br/>'
148
                ),
149
                __FILE__,
150
                __FUNCTION__,
151
                __LINE__
152
            );
153
        }
154
        //if event id is valid
155
        $id = absint(EE_Registry::instance()->REQ->get('tkt-slctr-event-id'));
156
        //		d( \EE_Registry::instance()->REQ );