Code Duplication    Length = 3-16 lines in 2 locations

main/exercise/exercise.class.php 2 locations

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