Code Duplication    Length = 7-9 lines in 2 locations

main/ticket/new_ticket.php 1 location

@@ 324-332 (lines=9) @@
321
        )
322
    );
323
324
    if (api_is_platform_admin()) {
325
        $form->addElement(
326
            'SelectAjax',
327
            'user_id',
328
            get_lang('Assign'),
329
            null,
330
            ['url' => api_get_path(WEB_AJAX_PATH).'user_manager.ajax.php?a=get_user_like']
331
        );
332
    }
333
334
    $form->addElement(
335
        'text',

src/Chamilo/CoreBundle/Framework/PageController.php 1 location

@@ 69-75 (lines=7) @@
66
                'href'  => api_get_path(WEB_CODE_PATH).'social/skills_wheel.php'
67
            );
68
69
            if (api_get_setting('skill.allow_hr_skills_management') == 'true'
70
                || api_is_platform_admin()) {
71
                $content[] = array(
72
                    'title' => get_lang('ManageSkills'),
73
                    'href'  => api_get_path(WEB_CODE_PATH).'admin/skills_wheel.php'
74
                );
75
            }
76
            $this->show_right_block(get_lang("Skills"), $content, 'skill_block');
77
        }
78
    }