Code Duplication    Length = 6-18 lines in 5 locations

caffeinated/modules/event_single_caff/EED_Event_Single_Caff.module.php 1 location

@@ 76-81 (lines=6) @@
73
74
75
76
	public static function enqueue_scripts_styles() {
77
		wp_register_style( 'eed-event-single-sortable', EVENT_SINGLE_CAFF_ASSETS_URL . 'eed_event_single_sortable.css', array(), EVENT_ESPRESSO_VERSION );
78
		wp_enqueue_style( 'eed-event-single-sortable' );
79
		wp_register_script( 'eed-event-single-sortable', EVENT_SINGLE_CAFF_ASSETS_URL . 'eed_event_single_sortable.js', array( 'jquery-ui-sortable' ), EVENT_ESPRESSO_VERSION, true );
80
		wp_enqueue_script( 'eed-event-single-sortable' );
81
	}
82
83
84

core/libraries/form_sections/strategies/display/EE_Checkbox_Dropdown_Selector_Display_Strategy.strategy.php 1 location

@@ 23-40 (lines=18) @@
20
    /**
21
     * enqueues css and js, so that this can be called statically
22
     */
23
    public static function enqueue_styles_and_scripts()
24
    {
25
        wp_register_style(
26
            'checkbox_dropdown_selector',
27
            EE_GLOBAL_ASSETS_URL . 'css/checkbox_dropdown_selector.css',
28
            array('espresso_default'),
29
            EVENT_ESPRESSO_VERSION
30
        );
31
        wp_enqueue_style('checkbox_dropdown_selector');
32
        wp_register_script(
33
            'checkbox_dropdown_selector',
34
            EE_GLOBAL_ASSETS_URL . 'scripts/checkbox_dropdown_selector.js',
35
            array('jquery'),
36
            EVENT_ESPRESSO_VERSION,
37
            true
38
        );
39
        wp_enqueue_script('checkbox_dropdown_selector');
40
    }
41
42
43

admin_pages/general_settings/General_Settings_Admin_Page.core.php 1 location

@@ 292-299 (lines=8) @@
289
    /**
290
     * Enqueue scripts and styles for the country settings route.
291
     */
292
    public function load_scripts_styles_country_settings()
293
    {
294
        //scripts
295
        wp_register_script(
296
            'gen_settings_countries',
297
            GEN_SET_ASSETS_URL . 'gen_settings_countries.js',
298
            array('ee_admin_js'),
299
            EVENT_ESPRESSO_VERSION,
300
            true
301
        );
302
        wp_register_style('organization-css', GEN_SET_ASSETS_URL . 'organization.css', array(), EVENT_ESPRESSO_VERSION);

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

@@ 321-335 (lines=15) @@
318
    /**
319
     * Enqueue scripts and styles for the event editor.
320
     */
321
    public function load_scripts_styles_edit()
322
    {
323
        wp_register_script(
324
            'ee-event-editor-heartbeat',
325
            EVENTS_CAF_ASSETS_URL . 'event-editor-heartbeat.js',
326
            array('ee_admin_js', 'heartbeat'),
327
            EVENT_ESPRESSO_VERSION,
328
            true
329
        );
330
        wp_enqueue_script('ee-accounting');
331
        //styles
332
        wp_enqueue_style('espresso-ui-theme');
333
        wp_enqueue_script('event_editor_js');
334
        wp_enqueue_script('ee-event-editor-heartbeat');
335
    }
336
337
338
    /**

core/EE_PUE.core.php 1 location

@@ 281-287 (lines=7) @@
278
     *
279
     * @return void
280
     */
281
    public function espresso_data_collection_enqueue_scripts()
282
    {
283
        wp_register_script(
284
            'ee-data-optin-js',
285
            EE_GLOBAL_ASSETS_URL . 'scripts/ee-data-optin.js',
286
            array('jquery'),
287
            EVENT_ESPRESSO_VERSION,
288
            true
289
        );
290
        wp_register_style(