Code Duplication    Length = 6-6 lines in 2 locations

main/exercise/exercise_show.php 1 location

@@ 895-900 (lines=6) @@
892
        $score['comments'] = isset($comnt) ? $comnt : null;
893
    }
894
895
    if (in_array($objQuestionTmp->type, [FREE_ANSWER, ORAL_EXPRESSION, ANNOTATION])) {
896
        $check = $objQuestionTmp->isQuestionWaitingReview($score);
897
        if ($check === false) {
898
            $countPendingQuestions++;
899
        }
900
    }
901
902
    unset($objAnswerTmp);
903
    $i++;

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

@@ 3978-3983 (lines=6) @@
3975
                    $score = [];
3976
                }
3977
3978
                if (in_array($objQuestionTmp->type, [FREE_ANSWER, ORAL_EXPRESSION, ANNOTATION])) {
3979
                    $check = $objQuestionTmp->isQuestionWaitingReview($score);
3980
                    if ($check === false) {
3981
                        $countPendingQuestions++;
3982
                    }
3983
                }
3984
3985
                $contents = ob_get_clean();
3986
                $question_content = '';