Code Duplication    Length = 3-16 lines in 2 locations

main/exercise/exercise.class.php 2 locations

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