Code Duplication    Length = 4-4 lines in 2 locations

main/newscorm/learnpath.class.php 2 locations

@@ 8274-8277 (lines=4) @@
8271
            $url.'&action=delete_item'
8272
        );
8273
8274
        if ($item_type == TOOL_HOTPOTATOES ) {
8275
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
8276
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8277
        }
8278
8279
        if ($item_type == TOOL_DOCUMENT ) {
8280
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
@@ 8279-8282 (lines=4) @@
8276
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8277
        }
8278
8279
        if ($item_type == TOOL_DOCUMENT ) {
8280
            $document_data = DocumentManager::get_document_data_by_id($row['path'], $course_code);
8281
            $return .= get_lang('File').': '.$document_data['absolute_path_from_document'];
8282
        }
8283
8284
        $return .= '</div>';
8285