Code Duplication    Length = 4-4 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

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