Code Duplication    Length = 25-26 lines in 2 locations

main/create_course/add_course.php 1 location

@@ 118-142 (lines=25) @@
115
116
// The teacher
117
$titular = & $form->addElement('hidden', 'tutor_name', '');
118
if ($course_validation_feature) {
119
    // Description of the requested course.
120
    $form->addElement(
121
        'textarea',
122
        'description',
123
        get_lang('Description'),
124
        array('rows' => '3')
125
    );
126
127
    // Objectives of the requested course.
128
    $form->addElement(
129
        'textarea',
130
        'objetives',
131
        get_lang('Objectives'),
132
        array('rows' => '3')
133
    );
134
135
    // Target audience of the requested course.
136
    $form->addElement(
137
        'textarea',
138
        'target_audience',
139
        get_lang('TargetAudience'),
140
        array('rows' => '3')
141
    );
142
}
143
144
// Course language.
145
$languages = api_get_languages();

src/Chamilo/CoreBundle/Controller/UserPortalController.php 1 location

@@ 122-147 (lines=26) @@
119
        );
120
121
        // The teacher
122
        if ($courseValidation) {
123
124
            // Description of the requested course.
125
            $form->addElement(
126
                'textarea',
127
                'description',
128
                get_lang('Description'),
129
                array('rows' => '3')
130
            );
131
132
            // Objectives of the requested course.
133
            $form->addElement(
134
                'textarea',
135
                'objetives',
136
                get_lang('Objectives'),
137
                array('rows' => '3')
138
            );
139
140
            // Target audience of the requested course.
141
            $form->addElement(
142
                'textarea',
143
                'target_audience',
144
                get_lang('TargetAudience'),
145
                array('rows' => '3')
146
            );
147
        }
148
149
        // Course language.
150
        $form->addElement(