Code Duplication    Length = 3-5 lines in 2 locations

main/exercice/export/exercise_import.inc.php 2 locations

@@ 445-447 (lines=3) @@
442
        //retrieve answers id for MCUA and MCMA questions
443
        case 'SIMPLECHOICE':
444
            $current_answer_id = $attributes['IDENTIFIER'];
445
            if (!isset($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id])) {
446
                $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id] = array();
447
            }
448
            break;
449
        case 'MAPENTRY':
450
            if ($parent_element == "MAPPING") {
@@ 699-703 (lines=5) @@
696
        case 'RENDER_CHOICE';
697
            break;
698
        case 'RESPONSE_LABEL':
699
            if (!empty($attributes['IDENT'])) {
700
                $current_answer_id = $attributes['IDENT'];
701
                //set the placeholder for the answer to come (in endElementQti1)
702
                $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id] = '';
703
            }
704
            break;
705
        case 'DECVAR':
706
            if ($parent_element == 'OUTCOMES' && $grand_parent_element == 'RESPROCESSING') {