Code Duplication    Length = 6-6 lines in 2 locations

main/exercise/exercise_show.php 1 location

@@ 877-882 (lines=6) @@
874
        $score['comments'] = isset($comnt) ? $comnt : null;
875
    }
876
877
    if (in_array($objQuestionTmp->type, [FREE_ANSWER, ORAL_EXPRESSION, ANNOTATION])) {
878
        $check = $objQuestionTmp->isQuestionWaitingReview($score);
879
        if ($check === false) {
880
            $countPendingQuestions++;
881
        }
882
    }
883
884
    unset($objAnswerTmp);
885
    $i++;

main/inc/lib/exercise.lib.php 1 location

@@ 3894-3899 (lines=6) @@
3891
                    $score = [];
3892
                }
3893
3894
                if (in_array($objQuestionTmp->type, [FREE_ANSWER, ORAL_EXPRESSION, ANNOTATION])) {
3895
                    $check = $objQuestionTmp->isQuestionWaitingReview($score);
3896
                    if ($check === false) {
3897
                        $countPendingQuestions++;
3898
                    }
3899
                }
3900
3901
                $contents = ob_get_clean();
3902
                $question_content = '';