Code Duplication    Length = 5-5 lines in 2 locations

main/inc/lib/exercise_show_functions.lib.php 2 locations

@@ 415-419 (lines=5) @@
412
        $new_options = Question::readQuestionOption($questionId, $course_id);
413
414
        //Your choice
415
        if (isset($new_options[$studentChoice])) {
416
            echo get_lang($new_options[$studentChoice]['name']);
417
        } else {
418
        	echo '-';
419
        }
420
421
        ?>
422
        </td>
@@ 428-432 (lines=5) @@
425
426
		// Expected choice
427
        if (!$hide_expected_answer) {
428
            if (isset($new_options[$answerCorrect])) {
429
                echo get_lang($new_options[$answerCorrect]['name']);
430
            } else {
431
                echo '-';
432
            }
433
        } else {
434
            echo '-';
435
        }