Code Duplication    Length = 4-4 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 8361-8364 (lines=4) @@
8358
            $url.'&action=delete_item'
8359
        );
8360
8361
        if ($item_type == TOOL_HOTPOTATOES ) {
8362
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
8363
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8364
        }
8365
8366
        if ($item_type == TOOL_DOCUMENT || $item_type == TOOL_LP_FINAL_ITEM) {
8367
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
@@ 8366-8369 (lines=4) @@
8363
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8364
        }
8365
8366
        if ($item_type == TOOL_DOCUMENT || $item_type == TOOL_LP_FINAL_ITEM) {
8367
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
8368
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8369
        }
8370
8371
        $return .= '</div>';
8372