Code Duplication    Length = 14-14 lines in 2 locations

main/exercice/exercise.class.php 2 locations

@@ 6843-6856 (lines=14) @@
6840
                    if (!empty($questionDescription)) {
6841
                        $html .= Display::div($questionDescription, array('class' => 'question_description'));
6842
                    }
6843
                } else {
6844
                    $html .= '<div class="media">';
6845
                    $html .= '<div class="pull-left">';
6846
                    $html .= '<div class="media-object">';
6847
                    $html .= Display::div($current_item, array('class' => 'question_no_title'));
6848
                    $html .= '</div>';
6849
                    $html .= '</div>';
6850
                    $html .= '<div class="media-body">';
6851
                    if (!empty($questionDescription)) {
6852
                        $html .= Display::div($questionDescription, array('class' => 'question_description'));
6853
                    }
6854
                    $html .= '</div>';
6855
                    $html .= '</div>';
6856
                }
6857
            }
6858
6859
            if (in_array($answerType, array(FREE_ANSWER, ORAL_EXPRESSION)) && $freeze) {
@@ 7507-7520 (lines=14) @@
7504
                    $html .=  TestCategory::getCategoryNamesForQuestion($objQuestionTmp->id);
7505
                    $html .=  '<div class="question_title">'.$current_item.'. '.$questionName.'</div>';
7506
                    $html .=  $questionDescription;
7507
                } else {
7508
                    $html .= '<div class="media">';
7509
                    $html .= '<div class="pull-left">';
7510
                    $html .= '<div class="media-object">';
7511
                    $html .= Display::div($current_item.'. ', array('class' => 'question_no_title'));
7512
                    $html .= '</div>';
7513
                    $html .= '</div>';
7514
                    $html .= '<div class="media-body">';
7515
                    if (!empty($questionDescription)) {
7516
                        $html .= Display::div($questionDescription, array('class' => 'question_description'));
7517
                    }
7518
                    $html .= '</div>';
7519
                    $html .= '</div>';
7520
                }
7521
                //@todo I need to the get the feedback type
7522
                $html .=  '<input type="hidden" name="hidden_hotspot_id" value="'.$questionId.'" />';
7523
                $html .=  '<table class="exercise_questions">