Code Duplication    Length = 10-15 lines in 3 locations

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
    /**

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

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