Code Duplication    Length = 14-14 lines in 2 locations

main/exercise/exercise.class.php 2 locations

@@ 6996-7009 (lines=14) @@
6993
                    if (!empty($questionDescription)) {
6994
                        $html .= Display::div($questionDescription, array('class' => 'question_description'));
6995
                    }
6996
                } else {
6997
                    $html .= '<div class="media">';
6998
                    $html .= '<div class="pull-left">';
6999
                    $html .= '<div class="media-object">';
7000
                    $html .= Display::div($current_item, array('class' => 'question_no_title'));
7001
                    $html .= '</div>';
7002
                    $html .= '</div>';
7003
                    $html .= '<div class="media-body">';
7004
                    if (!empty($questionDescription)) {
7005
                        $html .= Display::div($questionDescription, array('class' => 'question_description'));
7006
                    }
7007
                    $html .= '</div>';
7008
                    $html .= '</div>';
7009
                }
7010
            }
7011
7012
            if (in_array($answerType, array(FREE_ANSWER, ORAL_EXPRESSION)) && $freeze) {
@@ 7666-7679 (lines=14) @@
7663
                    $html .=  TestCategory::getCategoryNamesForQuestion($objQuestionTmp->id);
7664
                    $html .=  '<div class="question_title">'.$current_item.'. '.$questionName.'</div>';
7665
                    $html .=  $questionDescription;
7666
                } else {
7667
                    $html .= '<div class="media">';
7668
                    $html .= '<div class="pull-left">';
7669
                    $html .= '<div class="media-object">';
7670
                    $html .= Display::div($current_item.'. ', array('class' => 'question_no_title'));
7671
                    $html .= '</div>';
7672
                    $html .= '</div>';
7673
                    $html .= '<div class="media-body">';
7674
                    if (!empty($questionDescription)) {
7675
                        $html .= Display::div($questionDescription, array('class' => 'question_description'));
7676
                    }
7677
                    $html .= '</div>';
7678
                    $html .= '</div>';
7679
                }
7680
                //@todo I need to the get the feedback type
7681
                $html .=  '<input type="hidden" name="hidden_hotspot_id" value="'.$questionId.'" />';
7682
                $html .=  '<table class="exercise_questions">