Code Duplication    Length = 10-11 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 586-596 (lines=11) @@
583
    /**
584
     * Enqueuing scripts and styles specific to this view
585
     */
586
    public function load_scripts_styles_edit()
587
    {
588
        // styles
589
        wp_enqueue_style('espresso-ui-theme');
590
        wp_register_style(
591
            'event-editor-css',
592
            EVENTS_ASSETS_URL . 'event-editor.css',
593
            array('ee-admin-css'),
594
            EVENT_ESPRESSO_VERSION
595
        );
596
        wp_enqueue_style('event-editor-css');
597
        // scripts
598
        wp_register_script(
599
            'event-datetime-metabox',

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',