Code Duplication    Length = 10-15 lines in 3 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

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

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 656-665 (lines=10) @@
653
    }
654
655
656
    public function load_scripts_styles()
657
    {
658
        // style
659
        wp_register_style(
660
            'espresso_reg',
661
            REG_ASSETS_URL . 'espresso_registrations_admin.css',
662
            array('ee-admin-css'),
663
            EVENT_ESPRESSO_VERSION
664
        );
665
        wp_enqueue_style('espresso_reg');
666
        // script
667
        wp_register_script(
668
            'espresso_reg',

caffeinated/admin/extend/events/Extend_Events_Admin_Page.core.php 1 location

@@ 298-312 (lines=15) @@
295
    /**
296
     * Enqueue scripts and styles for the event editor.
297
     */
298
    public function load_scripts_styles_edit()
299
    {
300
        wp_register_script(
301
            'ee-event-editor-heartbeat',
302
            EVENTS_CAF_ASSETS_URL . 'event-editor-heartbeat.js',
303
            array('ee_admin_js', 'heartbeat'),
304
            EVENT_ESPRESSO_VERSION,
305
            true
306
        );
307
        wp_enqueue_script('ee-accounting');
308
        // styles
309
        wp_enqueue_style('espresso-ui-theme');
310
        wp_enqueue_script('event_editor_js');
311
        wp_enqueue_script('ee-event-editor-heartbeat');
312
    }
313
314
315
    /**