Code Duplication    Length = 10-15 lines in 3 locations

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

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

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

@@ 376-390 (lines=15) @@
373
    /**
374
     * Enqueue scripts and styles for the event editor.
375
     */
376
    public function load_scripts_styles_edit()
377
    {
378
        wp_register_script(
379
            'ee-event-editor-heartbeat',
380
            EVENTS_CAF_ASSETS_URL . 'event-editor-heartbeat.js',
381
            array('ee_admin_js', 'heartbeat'),
382
            EVENT_ESPRESSO_VERSION,
383
            true
384
        );
385
        wp_enqueue_script('ee-accounting');
386
        // styles
387
        wp_enqueue_style('espresso-ui-theme');
388
        wp_enqueue_script('event_editor_js');
389
        wp_enqueue_script('ee-event-editor-heartbeat');
390
    }
391
392
393
    /**