Code Duplication    Length = 3-16 lines in 2 locations

main/exercise/exercise.class.php 2 locations

@@ 1883-1898 (lines=16) @@
1880
                    )
1881
                );
1882
1883
                if (api_get_setting('enable_quiz_scenario') == 'true') {
1884
                    //Can't convert a question from one feedback to another if there is more than 1 question already added
1885
                    if ($this->selectNbrQuestions() == 0) {
1886
                        $radios_feedback[] = $form->createElement(
1887
                            'radio',
1888
                            'exerciseFeedbackType',
1889
                            null,
1890
                            get_lang('DirectFeedback'),
1891
                            '1',
1892
                            array(
1893
                                'id' => 'exerciseType_1',
1894
                                'onclick' => 'check_direct_feedback()',
1895
                            )
1896
                        );
1897
                    }
1898
                }
1899
1900
                $radios_feedback[] = $form->createElement(
1901
                    'radio',
@@ 1965-1967 (lines=3) @@
1962
                    $radios_feedback = array();
1963
                    $radios_feedback[] = $form->createElement('radio', 'exerciseFeedbackType', null, get_lang('ExerciseAtTheEndOfTheTest'),'0',array('id' =>'exerciseType_0', 'onclick' => 'check_feedback()'));
1964
1965
                    if (api_get_setting('enable_quiz_scenario') == 'true') {
1966
                        $radios_feedback[] = $form->createElement('radio', 'exerciseFeedbackType', null, get_lang('DirectFeedback'), '1', array('id' =>'exerciseType_1' , 'onclick' => 'check_direct_feedback()'));
1967
                    }
1968
                    $radios_feedback[] = $form->createElement('radio', 'exerciseFeedbackType', null, get_lang('NoFeedback'),'2',array('id' =>'exerciseType_2'));
1969
                    $form->addGroup($radios_feedback, null, array(get_lang('FeedbackType'),get_lang('FeedbackDisplayOptions')));
1970