Code Duplication    Length = 11-12 lines in 2 locations

main/exercise/exercise.class.php 1 location

@@ 4986-4996 (lines=11) @@
4983
                                        . (($final_missing < 0) ? 0 : intval($final_missing)) . '</div></td>
4984
                                </tr>
4985
                            </table>';
4986
                        if ($next == 0) {
4987
                            $try = $try_hotspot;
4988
                            $lp = $lp_hotspot;
4989
                            $destinationid = $select_question_hotspot;
4990
                            $url = $url_hotspot;
4991
                        } else {
4992
                            //show if no error
4993
                            //echo 'no error';
4994
                            $comment = $answerComment = $objAnswerTmp->selectComment($nbrAnswers);
4995
                            $answerDestination = $objAnswerTmp->selectDestination($nbrAnswers);
4996
                        }
4997
4998
                        echo '<h1><div style="color:#333;">' . get_lang('Feedback') . '</div></h1>
4999
                            <p style="text-align:center">';

main/exercise/exercise_show.php 1 location

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