Code Duplication    Length = 10-11 lines in 2 locations

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 749-758 (lines=10) @@
746
    }
747
748
749
    public function load_scripts_styles()
750
    {
751
        // style
752
        wp_register_style(
753
            'espresso_reg',
754
            REG_ASSETS_URL . 'espresso_registrations_admin.css',
755
            array('ee-admin-css'),
756
            EVENT_ESPRESSO_VERSION
757
        );
758
        wp_enqueue_style('espresso_reg');
759
        // script
760
        wp_register_script(
761
            'espresso_reg',

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 603-613 (lines=11) @@
600
    /**
601
     * Enqueuing scripts and styles specific to this view
602
     */
603
    public function load_scripts_styles_edit()
604
    {
605
        // styles
606
        wp_enqueue_style('espresso-ui-theme');
607
        wp_register_style(
608
            'event-editor-css',
609
            EVENTS_ASSETS_URL . 'event-editor.css',
610
            array('ee-admin-css'),
611
            EVENT_ESPRESSO_VERSION
612
        );
613
        wp_enqueue_style('event-editor-css');
614
        // scripts
615
        wp_register_script(
616
            'event-datetime-metabox',