Code Duplication    Length = 4-4 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 8266-8269 (lines=4) @@
8263
            $url.'&action=delete_item'
8264
        );
8265
8266
        if ($item_type == TOOL_HOTPOTATOES ) {
8267
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
8268
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8269
        }
8270
8271
        if ($item_type == TOOL_DOCUMENT ) {
8272
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
@@ 8271-8274 (lines=4) @@
8268
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8269
        }
8270
8271
        if ($item_type == TOOL_DOCUMENT ) {
8272
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
8273
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8274
        }
8275
8276
        $return .= '</div>';
8277