Code Duplication    Length = 7-7 lines in 2 locations

modules/ticket_selector/EED_Ticket_Selector.module.php 2 locations

@@ 274-280 (lines=7) @@
271
    public static function iframe_code_button($permalink_string, $id, $new_title = '', $new_slug = '')
272
    {
273
        // todo add doing_it_wrong() notice during next major version
274
        if (
275
        	\EE_Registry::instance()->REQ->get('page') === 'espresso_events'
276
        	&& \EE_Registry::instance()->REQ->get('action') === 'edit'
277
        ) {
278
            $iframe_embed_button = \EED_Ticket_Selector::getIframeEmbedButton();
279
            $iframe_embed_button->addEventEditorIframeEmbedButton();
280
        }
281
        return '';
282
    }
283
@@ 352-358 (lines=7) @@
349
    public static function load_tckt_slctr_assets_admin()
350
    {
351
        // todo add doing_it_wrong() notice during next major version
352
	    if (
353
		    \EE_Registry::instance()->REQ->get( 'page' ) === 'espresso_events'
354
		    && \EE_Registry::instance()->REQ->get( 'action' ) === 'edit'
355
	    ) {
356
		    $iframe_embed_button = \EED_Ticket_Selector::getIframeEmbedButton();
357
            $iframe_embed_button->embedButtonAssets();
358
        }
359
    }
360
361