Code Duplication    Length = 4-4 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 8298-8301 (lines=4) @@
8295
            $url.'&action=delete_item'
8296
        );
8297
8298
        if ($item_type == TOOL_HOTPOTATOES ) {
8299
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
8300
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8301
        }
8302
8303
        if ($item_type == TOOL_DOCUMENT || $item_type == TOOL_FINAL_ITEM) {
8304
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
@@ 8303-8306 (lines=4) @@
8300
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8301
        }
8302
8303
        if ($item_type == TOOL_DOCUMENT || $item_type == TOOL_FINAL_ITEM) {
8304
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
8305
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8306
        }
8307
8308
        $return .= '</div>';
8309