Code Duplication    Length = 5-5 lines in 2 locations

main/exercice/exercise.class.php 2 locations

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