Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 3801-3805 (lines=5) @@
3798
3799
        $return .= '<div class="item_data" style="margin-left:'.($num * 5).'px;margin-right:5px;">';
3800
3801
        if ($add_move_button) {
3802
            $return .= '<a class="moved" href="#">';
3803
            $return .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
3804
            $return .= '</a> ';
3805
        }
3806
        $return .= $link;
3807
        $sessionStar = api_get_session_image($resource['session_id'], $userInfo['status']);
3808
        $return .= $sessionStar;

main/lp/learnpath.class.php 1 location

@@ 5885-5889 (lines=5) @@
5882
5883
            if ($is_allowed_to_edit) {
5884
                if (!$update_audio || $update_audio <> 'true') {
5885
                    if ($arrLP[$i]['item_type'] !== TOOL_LP_FINAL_ITEM) {
5886
                        $move_icon .= '<a class="moved" href="#">';
5887
                        $move_icon .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
5888
                        $move_icon .= '</a>';
5889
                    }
5890
                }
5891
5892
                // No edit for this item types