Code Duplication    Length = 5-5 lines in 2 locations

main/inc/lib/document.lib.php 2 locations

@@ 5381-5385 (lines=5) @@
5378
                        return '<a href="' . $url . '" title="' . $tooltip_title_alt . '" ' . $visibility_class . ' style="float:left">' .
5379
                        DocumentManager::build_document_icon_tag($filetype, $path) .
5380
                        Display::return_icon('shared.png', get_lang('ResourceShared'), array()) . '</a>';
5381
                    } else {
5382
                        return '<a href="' . $url . '" title="' . $tooltip_title_alt . '" ' . $visibility_class . ' style="float:left">' .
5383
                        DocumentManager::build_document_icon_tag($filetype, $path) .
5384
                        Display::return_icon('shared.png', get_lang('ResourceShared'), array()) . '</a>';
5385
                    }
5386
                } else {
5387
                    return '<a href="' . $url . '" title="' . $tooltip_title_alt . '" target="' . $target . '"' . $visibility_class . ' style="float:left">' .
5388
                    DocumentManager::build_document_icon_tag($filetype, $path) .
@@ 5386-5390 (lines=5) @@
5383
                        DocumentManager::build_document_icon_tag($filetype, $path) .
5384
                        Display::return_icon('shared.png', get_lang('ResourceShared'), array()) . '</a>';
5385
                    }
5386
                } else {
5387
                    return '<a href="' . $url . '" title="' . $tooltip_title_alt . '" target="' . $target . '"' . $visibility_class . ' style="float:left">' .
5388
                    DocumentManager::build_document_icon_tag($filetype, $path) .
5389
                    Display::return_icon('shared.png', get_lang('ResourceShared'), array()) . '</a>';
5390
                }
5391
            } else {
5392
                if ($filetype == 'file') {
5393
                    // Sound preview with jplayer