Code Duplication    Length = 31-31 lines in 2 locations

main/exercise/exercise.class.php 2 locations

@@ 4602-4632 (lines=31) @@
4599
                                );
4600
                            }
4601
                            break;
4602
                        case MULTIPLE_ANSWER_COMBINATION_TRUE_FALSE:
4603
                            if ($answerId == 1) {
4604
                                ExerciseShowFunctions::display_multiple_answer_combination_true_false(
4605
                                    $feedback_type,
4606
                                    $answerType,
4607
                                    $studentChoice,
4608
                                    $answer,
4609
                                    $answerComment,
4610
                                    $answerCorrect,
4611
                                    $exeId,
4612
                                    $questionId,
4613
                                    $answerId,
4614
                                    $results_disabled,
4615
                                    $showTotalScoreAndUserChoicesInLastAttempt
4616
                                );
4617
                            } else {
4618
                                ExerciseShowFunctions::display_multiple_answer_combination_true_false(
4619
                                    $feedback_type,
4620
                                    $answerType,
4621
                                    $studentChoice,
4622
                                    $answer,
4623
                                    $answerComment,
4624
                                    $answerCorrect,
4625
                                    $exeId,
4626
                                    $questionId,
4627
                                    '',
4628
                                    $results_disabled,
4629
                                    $showTotalScoreAndUserChoicesInLastAttempt
4630
                                );
4631
                            }
4632
                            break;
4633
                        case MULTIPLE_ANSWER_TRUE_FALSE:
4634
                            if ($answerId == 1) {
4635
                                ExerciseShowFunctions::display_multiple_answer_true_false(
@@ 4633-4663 (lines=31) @@
4630
                                );
4631
                            }
4632
                            break;
4633
                        case MULTIPLE_ANSWER_TRUE_FALSE:
4634
                            if ($answerId == 1) {
4635
                                ExerciseShowFunctions::display_multiple_answer_true_false(
4636
                                    $feedback_type,
4637
                                    $answerType,
4638
                                    $studentChoice,
4639
                                    $answer,
4640
                                    $answerComment,
4641
                                    $answerCorrect,
4642
                                    $exeId,
4643
                                    $questionId,
4644
                                    $answerId,
4645
                                    $results_disabled,
4646
                                    $showTotalScoreAndUserChoicesInLastAttempt
4647
                                );
4648
                            } else {
4649
                                ExerciseShowFunctions::display_multiple_answer_true_false(
4650
                                    $feedback_type,
4651
                                    $answerType,
4652
                                    $studentChoice,
4653
                                    $answer,
4654
                                    $answerComment,
4655
                                    $answerCorrect,
4656
                                    $exeId,
4657
                                    $questionId,
4658
                                    '',
4659
                                    $results_disabled,
4660
                                    $showTotalScoreAndUserChoicesInLastAttempt
4661
                                );
4662
                            }
4663
                            break;
4664
                        case FILL_IN_BLANKS:
4665
                            ExerciseShowFunctions::display_fill_in_blanks_answer(
4666
                                $feedback_type,