Code Duplication    Length = 6-9 lines in 2 locations

main/exercice/exercise.php 1 location

@@ 1079-1084 (lines=6) @@
1076
1077
                $item .= Display::tag('td', $attemptText);
1078
1079
                if ($isDrhOfCourse) {
1080
                    $actions ='<a href="hotpotatoes_exercise_report.php?'.api_get_cidreq().'&path='.$path.'">'.
1081
                        Display :: return_icon('test_results.png', get_lang('Results'), '', ICON_SIZE_SMALL).'</a>';
1082
1083
                    $item .= Display::tag('td', $actions, array('class' => 'td_actions'));
1084
                }
1085
1086
                $tableRows[] = Display::tag('tr', $item);
1087
            }

main/inc/lib/document.lib.php 1 location

@@ 5262-5270 (lines=9) @@
5259
            ) {
5260
                $copy_myfiles_link = ($filetype == 'file') ? api_get_self() . '?' . api_get_cidreq() . '&action=copytomyfiles&id=' . $document_data['id'] : api_get_self() . '?' . api_get_cidreq();
5261
5262
                if ($filetype == 'file') {
5263
5264
                    $copy_to_myfiles = '<a href="' . $copy_myfiles_link . '" style="float:right"' . $prevent_multiple_click . '>' .
5265
                        Display::return_icon('briefcase.png', get_lang('CopyToMyFiles'), array(), ICON_SIZE_SMALL) . '&nbsp;&nbsp;</a>';
5266
5267
                    if (api_get_setting('allow_my_files') === 'false') {
5268
                        $copy_to_myfiles = '';
5269
                    }
5270
                }
5271
5272
                if ($filetype == 'file') {
5273
                    $send_to = Portfolio::share('document', $document_data['id'], array('style' => 'float:right;'));