Code Duplication    Length = 10-15 lines in 3 locations

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 596-606 (lines=11) @@
593
    /**
594
     * Enqueuing scripts and styles specific to this view
595
     */
596
    public function load_scripts_styles_edit()
597
    {
598
        // styles
599
        wp_enqueue_style('espresso-ui-theme');
600
        wp_register_style(
601
            'event-editor-css',
602
            EVENTS_ASSETS_URL . 'event-editor.css',
603
            array('ee-admin-css'),
604
            EVENT_ESPRESSO_VERSION
605
        );
606
        wp_enqueue_style('event-editor-css');
607
        // scripts
608
        wp_register_script(
609
            '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',

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

@@ 349-363 (lines=15) @@
346
    /**
347
     * Enqueue scripts and styles for the event editor.
348
     */
349
    public function load_scripts_styles_edit()
350
    {
351
        wp_register_script(
352
            'ee-event-editor-heartbeat',
353
            EVENTS_CAF_ASSETS_URL . 'event-editor-heartbeat.js',
354
            array('ee_admin_js', 'heartbeat'),
355
            EVENT_ESPRESSO_VERSION,
356
            true
357
        );
358
        wp_enqueue_script('ee-accounting');
359
        // styles
360
        wp_enqueue_style('espresso-ui-theme');
361
        wp_enqueue_script('event_editor_js');
362
        wp_enqueue_script('ee-event-editor-heartbeat');
363
    }
364
365
366
    /**