Code Duplication    Length = 5-5 lines in 2 locations

main/exercice/exercise.class.php 2 locations

@@ 4934-4938 (lines=5) @@
4931
                            $questionScore = 0;
4932
                            $answer=0;
4933
                            Event::saveQuestionAttempt($questionScore, $answer, $quesId, $exeId, 0);
4934
                            if (is_array($exerciseResultCoordinates[$quesId])) {
4935
                                foreach($exerciseResultCoordinates[$quesId] as $idx => $val) {
4936
                                    Event::saveExerciseAttemptHotspot($exeId,$quesId,$idx,0,$val);
4937
                                }
4938
                            }
4939
                        } else {
4940
                            Event::saveQuestionAttempt($questionScore, $answer, $quesId, $exeId, 0);
4941
                            if (is_array($exerciseResultCoordinates[$quesId])) {
@@ 4941-4945 (lines=5) @@
4938
                            }
4939
                        } else {
4940
                            Event::saveQuestionAttempt($questionScore, $answer, $quesId, $exeId, 0);
4941
                            if (is_array($exerciseResultCoordinates[$quesId])) {
4942
                                foreach($exerciseResultCoordinates[$quesId] as $idx => $val) {
4943
                                    Event::saveExerciseAttemptHotspot($exeId,$quesId,$idx,$choice[$idx],$val);
4944
                                }
4945
                            }
4946
                        }
4947
                    }
4948
                    $my_exe_id = $exeId;