Code Duplication    Length = 6-14 lines in 3 locations

core/domain/services/pue/Stats.php 1 location

@@ 172-178 (lines=7) @@
169
    /**
170
     * Callback for admin_enqueue_scripts that sets up the scripts and styles for the uxip notice
171
     */
172
    public function enqueueScripts()
173
    {
174
        wp_register_script(
175
            'ee-data-optin-js',
176
            EE_GLOBAL_ASSETS_URL . 'scripts/ee-data-optin.js',
177
            array('jquery'),
178
            EVENT_ESPRESSO_VERSION,
179
            true
180
        );
181
        wp_register_style(

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

@@ 91-96 (lines=6) @@
88
    }
89
90
91
    public static function enqueue_scripts_styles()
92
    {
93
        wp_register_style(
94
            'eed-event-single-sortable',
95
            EVENT_SINGLE_CAFF_ASSETS_URL . 'eed_event_single_sortable.css',
96
            array(),
97
            EVENT_ESPRESSO_VERSION
98
        );
99
        wp_enqueue_style('eed-event-single-sortable');

admin_pages/general_settings/General_Settings_Admin_Page.core.php 1 location

@@ 310-323 (lines=14) @@
307
    /**
308
     * Enqueue scripts and styles for the country settings route.
309
     */
310
    public function load_scripts_styles_country_settings()
311
    {
312
        // scripts
313
        wp_register_script(
314
            'gen_settings_countries',
315
            GEN_SET_ASSETS_URL . 'gen_settings_countries.js',
316
            array('ee_admin_js'),
317
            EVENT_ESPRESSO_VERSION,
318
            true
319
        );
320
        wp_register_style('organization-css', GEN_SET_ASSETS_URL . 'organization.css', array(), EVENT_ESPRESSO_VERSION);
321
        wp_enqueue_script('gen_settings_countries');
322
        wp_enqueue_style('organization-css');
323
    }
324
325
326
    /*************        Espresso Pages        *************/