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

@@ 619-629 (lines=11) @@
616
    /**
617
     * Enqueuing scripts and styles specific to this view
618
     */
619
    public function load_scripts_styles_edit()
620
    {
621
        // styles
622
        wp_enqueue_style('espresso-ui-theme');
623
        wp_register_style(
624
            'event-editor-css',
625
            EVENTS_ASSETS_URL . 'event-editor.css',
626
            array('ee-admin-css'),
627
            EVENT_ESPRESSO_VERSION
628
        );
629
        wp_enqueue_style('event-editor-css');
630
        // scripts
631
        wp_register_script(
632
            'event-datetime-metabox',