Code Duplication    Length = 10-11 lines in 2 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

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

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 667-676 (lines=10) @@
664
    }
665
666
667
    public function load_scripts_styles()
668
    {
669
        //style
670
        wp_register_style(
671
            'espresso_reg',
672
            REG_ASSETS_URL . 'espresso_registrations_admin.css',
673
            array('ee-admin-css'),
674
            EVENT_ESPRESSO_VERSION
675
        );
676
        wp_enqueue_style('espresso_reg');
677
        //script
678
        wp_register_script(
679
            'espresso_reg',