Code Duplication    Length = 9-10 lines in 2 locations

core/admin/EE_Admin_Page_Loader.core.php 1 location

@@ 121-130 (lines=10) @@
118
     * @access private
119
     * @return void
120
     */
121
    private function _define_caffeinated_constants()
122
    {
123
        if (! defined('EE_CORE_CAF_ADMIN')) {
124
            define('EE_CORE_CAF_ADMIN', EE_PLUGIN_DIR_PATH . 'caffeinated/admin/');
125
            define('EE_CORE_CAF_ADMIN_URL', EE_PLUGIN_DIR_URL . 'caffeinated/admin/');
126
            define('EE_CORE_CAF_ADMIN_NEW', EE_CORE_CAF_ADMIN . 'new/');
127
            define('EE_CORE_CAF_ADMIN_EXTEND', EE_CORE_CAF_ADMIN . 'extend/');
128
            define('EE_CORE_CAF_ADMIN_EXTEND_URL', EE_CORE_CAF_ADMIN_URL . 'extend/');
129
            define('EE_CORE_CAF_ADMIN_HOOKS', EE_CORE_CAF_ADMIN . 'hooks/');
130
        }
131
    }
132
133

core/admin/EE_Admin.core.php 1 location

@@ 106-114 (lines=9) @@
103
     *
104
     * @return void
105
     */
106
    private function _define_all_constants()
107
    {
108
        if (! defined('EE_ADMIN_URL')) {
109
            define('EE_ADMIN_URL', EE_PLUGIN_DIR_URL . 'core/admin/');
110
            define('EE_ADMIN_PAGES_URL', EE_PLUGIN_DIR_URL . 'admin_pages/');
111
            define('EE_ADMIN_TEMPLATE', EE_ADMIN . 'templates' . DS);
112
            define('WP_ADMIN_PATH', ABSPATH . 'wp-admin/');
113
            define('WP_AJAX_URL', admin_url('admin-ajax.php'));
114
        }
115
    }
116
117