Code Duplication    Length = 11-12 lines in 2 locations

main/exercise/exercise.class.php 1 location

@@ 5052-5062 (lines=11) @@
5049
                                        . (($final_missing < 0) ? 0 : intval($final_missing)).'</div></td>
5050
                                </tr>
5051
                            </table>';
5052
                        if ($next == 0) {
5053
                            $try = $try_hotspot;
5054
                            $lp = $lp_hotspot;
5055
                            $destinationid = $select_question_hotspot;
5056
                            $url = $url_hotspot;
5057
                        } else {
5058
                            //show if no error
5059
                            //echo 'no error';
5060
                            $comment = $answerComment = $objAnswerTmp->selectComment($nbrAnswers);
5061
                            $answerDestination = $objAnswerTmp->selectDestination($nbrAnswers);
5062
                        }
5063
5064
                        echo '<h1><div style="color:#333;">'.get_lang('Feedback').'</div></h1>
5065
                            <p style="text-align:center">';

main/exercise/exercise_show.php 1 location

@@ 561-572 (lines=12) @@
558
                    $destinationid = $item_list[2];
559
                    $url = $item_list[3];
560
                    $table_resume = '';
561
                } else {
562
                    if ($next == 0) {
563
                        $try = $try_hotspot;
564
                        $lp = $lp_hotspot;
565
                        $destinationid = $select_question_hotspot;
566
                        $url = $url_hotspot;
567
                    } else {
568
                        //show if no error
569
                        $comment = $answerComment = $objAnswerTmp->selectComment($nbrAnswers);
570
                        $answerDestination = $objAnswerTmp->selectDestination($nbrAnswers);
571
                    }
572
                }
573
574
                echo '<h1><div style="color:#333;">'.get_lang('Feedback').'</div></h1>';
575
                if ($answerType == HOT_SPOT_DELINEATION) {