Code Duplication    Length = 4-4 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 8354-8357 (lines=4) @@
8351
            $url.'&action=delete_item'
8352
        );
8353
8354
        if ($item_type == TOOL_HOTPOTATOES ) {
8355
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
8356
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8357
        }
8358
8359
        if ($item_type == TOOL_DOCUMENT || $item_type == TOOL_LP_FINAL_ITEM) {
8360
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
@@ 8359-8362 (lines=4) @@
8356
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8357
        }
8358
8359
        if ($item_type == TOOL_DOCUMENT || $item_type == TOOL_LP_FINAL_ITEM) {
8360
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
8361
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8362
        }
8363
8364
        $return .= '</div>';
8365