Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 3885-3890 (lines=6) @@
3882
                    $score = array();
3883
                }
3884
3885
                if (in_array($objQuestionTmp->type, [FREE_ANSWER, ORAL_EXPRESSION])) {
3886
                    $check = $objQuestionTmp->isQuestionWaitingReview($score);
3887
                    if ($check === false) {
3888
                        $countPendingQuestions++;
3889
                    }
3890
                }
3891
3892
                $contents = ob_get_clean();
3893
                $question_content = '';

main/exercise/exercise_show.php 1 location

@@ 837-842 (lines=6) @@
834
        $score['comments'] = isset($comnt) ? $comnt : null;
835
    }
836
837
    if (in_array($objQuestionTmp->type, [FREE_ANSWER, ORAL_EXPRESSION])) {
838
        $check = $objQuestionTmp->isQuestionWaitingReview($score);
839
        if ($check === false) {
840
            $countPendingQuestions++;
841
        }
842
    }
843
844
    unset($objAnswerTmp);
845
    $i++;