Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 24-31 (lines=8) @@
21
     *
22
     * @param bool $routing
23
     */
24
    public function __construct($routing = true)
25
    {
26
        parent::__construct($routing);
27
        if (! defined('EVENTS_CAF_TEMPLATE_PATH')) {
28
            define('EVENTS_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'events/templates/');
29
            define('EVENTS_CAF_ASSETS', EE_CORE_CAF_ADMIN_EXTEND . 'events/assets/');
30
            define('EVENTS_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'events/assets/');
31
        }
32
    }
33
34

caffeinated/admin/extend/registrations/Extend_Registrations_Admin_Page.core.php 1 location

@@ 32-39 (lines=8) @@
29
     *
30
     * @param bool $routing
31
     */
32
    public function __construct($routing = true)
33
    {
34
        parent::__construct($routing);
35
        if (! defined('REG_CAF_TEMPLATE_PATH')) {
36
            define('REG_CAF_TEMPLATE_PATH', EE_CORE_CAF_ADMIN_EXTEND . 'registrations/templates/');
37
            define('REG_CAF_ASSETS', EE_CORE_CAF_ADMIN_EXTEND . 'registrations/assets/');
38
            define('REG_CAF_ASSETS_URL', EE_CORE_CAF_ADMIN_EXTEND_URL . 'registrations/assets/');
39
        }
40
    }
41
42