Code Duplication    Length = 3-16 lines in 2 locations

main/exercise/exercise.class.php 2 locations

@@ 1896-1911 (lines=16) @@
1893
                    )
1894
                );
1895
1896
                if (api_get_setting('enable_quiz_scenario') == 'true') {
1897
                    //Can't convert a question from one feedback to another if there is more than 1 question already added
1898
                    if ($this->selectNbrQuestions() == 0) {
1899
                        $radios_feedback[] = $form->createElement(
1900
                            'radio',
1901
                            'exerciseFeedbackType',
1902
                            null,
1903
                            get_lang('DirectFeedback'),
1904
                            '1',
1905
                            array(
1906
                                'id' => 'exerciseType_1',
1907
                                'onclick' => 'check_direct_feedback()',
1908
                            )
1909
                        );
1910
                    }
1911
                }
1912
1913
                $radios_feedback[] = $form->createElement(
1914
                    'radio',
@@ 1986-1988 (lines=3) @@
1983
                    $radios_feedback = array();
1984
                    $radios_feedback[] = $form->createElement('radio', 'exerciseFeedbackType', null, get_lang('ExerciseAtTheEndOfTheTest'), '0', array('id' =>'exerciseType_0', 'onclick' => 'check_feedback()'));
1985
1986
                    if (api_get_setting('enable_quiz_scenario') == 'true') {
1987
                        $radios_feedback[] = $form->createElement('radio', 'exerciseFeedbackType', null, get_lang('DirectFeedback'), '1', array('id' =>'exerciseType_1', 'onclick' => 'check_direct_feedback()'));
1988
                    }
1989
                    $radios_feedback[] = $form->createElement('radio', 'exerciseFeedbackType', null, get_lang('NoFeedback'), '2', array('id' =>'exerciseType_2'));
1990
                    $form->addGroup($radios_feedback, null, array(get_lang('FeedbackType'), get_lang('FeedbackDisplayOptions')));
1991