Code Duplication    Length = 9-9 lines in 2 locations

column.php 1 location

@@ 77-85 (lines=9) @@
74
    $articles['poster']   = getLinkedUnameFromId($category['author']);
75
    $articles['bodytext'] = xoops_substr($articles['bodytext'], 0, 255);
76
    //--------------------
77
    if ($articles['submit'] != 0) {
78
        $articles['headline'] = '[' . _MD_SOAPBOX_SELSUBMITS . ']' . $articles['headline'];
79
        $articles['teaser']   = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC;
80
        $articles['lead']     = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC;
81
    } elseif ($_entryob->getVar('datesub') == 0 || $_entryob->getVar('datesub') > time()) {
82
        $articles['headline'] = '[' . _MD_SOAPBOX_SELWAITEPUBLISH . ']' . $articles['headline'];
83
        $articles['teaser']   = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC;
84
        $articles['lead']     = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC;
85
    }
86
    //--------------------
87
    if (!empty($articles['artimage']) && $articles['artimage'] != 'blank.png' && file_exists(XOOPS_ROOT_PATH . '/' . $myts->htmlSpecialChars($xoopsModuleConfig['sbuploaddir']) . '/' . $articles['artimage'])) {
88
        $articles['image'] = XOOPS_URL . '/' . $myts->htmlSpecialChars($xoopsModuleConfig['sbuploaddir']) . '/' . $articles['artimage'];

index.php 1 location

@@ 98-106 (lines=9) @@
95
                $articles['poster']   = getLinkedUnameFromId($category['author']);
96
                $articles['bodytext'] = xoops_substr($articles['bodytext'], 0, 255);
97
                //--------------------
98
                if ($articles['submit'] != 0) {
99
                    $articles['headline'] = '[' . _MD_SOAPBOX_SELSUBMITS . ']' . $articles['headline'];
100
                    $articles['teaser']   = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC;
101
                    $articles['lead']     = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC;
102
                } elseif ($_entryob->getVar('datesub') == 0 || $_entryob->getVar('datesub') > time()) {
103
                    $articles['headline'] = '[' . _MD_SOAPBOX_SELWAITEPUBLISH . ']' . $articles['headline'];
104
                    $articles['teaser']   = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC;
105
                    $articles['lead']     = $xoopsUser->getVar('uname') . _MD_SOAPBOX_SUB_SNEWNAMEDESC;
106
                }
107
108
                // Functional links
109
                $articles['adminlinks'] = $_entrydata_handler->getadminlinks($_entryob, $_categoryob);