Code Duplication    Length = 3-16 lines in 2 locations

main/exercice/exercise.class.php 2 locations

@@ 1919-1934 (lines=16) @@
1916
                    )
1917
                );
1918
1919
                if (api_get_setting('enable_quiz_scenario') == 'true') {
1920
                    //Can't convert a question from one feedback to another if there is more than 1 question already added
1921
                    if ($this->selectNbrQuestions() == 0) {
1922
                        $radios_feedback[] = $form->createElement(
1923
                            'radio',
1924
                            'exerciseFeedbackType',
1925
                            null,
1926
                            get_lang('DirectFeedback'),
1927
                            '1',
1928
                            array(
1929
                                'id' => 'exerciseType_1',
1930
                                'onclick' => 'check_direct_feedback()',
1931
                            )
1932
                        );
1933
                    }
1934
                }
1935
1936
                $radios_feedback[] = $form->createElement(
1937
                    'radio',
@@ 2001-2003 (lines=3) @@
1998
                    $radios_feedback = array();
1999
                    $radios_feedback[] = $form->createElement('radio', 'exerciseFeedbackType', null, get_lang('ExerciseAtTheEndOfTheTest'),'0',array('id' =>'exerciseType_0', 'onclick' => 'check_feedback()'));
2000
2001
                    if (api_get_setting('enable_quiz_scenario') == 'true') {
2002
                        $radios_feedback[] = $form->createElement('radio', 'exerciseFeedbackType', null, get_lang('DirectFeedback'), '1', array('id' =>'exerciseType_1' , 'onclick' => 'check_direct_feedback()'));
2003
                    }
2004
                    $radios_feedback[] = $form->createElement('radio', 'exerciseFeedbackType', null, get_lang('NoFeedback'),'2',array('id' =>'exerciseType_2'));
2005
                    $form->addGroup($radios_feedback, null, array(get_lang('FeedbackType'),get_lang('FeedbackDisplayOptions')));
2006