Code Duplication    Length = 3-3 lines in 3 locations

class/utilities.php 3 locations

@@ 2094-2096 (lines=3) @@
2091
        if (3 != $GLOBALS['xoopsModuleConfig']['displayicons']) {
2092
            if ($newdate < $time) {
2093
                if ((int)$status > 1) {
2094
                    if (1 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2095
                        $new = '&nbsp;<img src="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/assets/images/icon/updated.gif" alt="" style="vertical-align: middle;" />';
2096
                    }
2097
                    if (2 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2098
                        $new = '<em>' . _MD_XOOPSTUBE_UPDATED . '</em>';
2099
                    }
@@ 2101-2103 (lines=3) @@
2098
                        $new = '<em>' . _MD_XOOPSTUBE_UPDATED . '</em>';
2099
                    }
2100
                } else {
2101
                    if (1 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2102
                        $new = '&nbsp;<img src="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/assets/images/icon/new.gif" alt="" style="vertical-align: middle;" />';
2103
                    }
2104
                    if (2 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2105
                        $new = '<em>' . _MD_XOOPSTUBE_NEW . '</em>';
2106
                    }
@@ 2111-2113 (lines=3) @@
2108
            }
2109
            if ($popdate > $time) {
2110
                if ($counter >= $GLOBALS['xoopsModuleConfig']['popular']) {
2111
                    if (1 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2112
                        $pop = '&nbsp;<img src="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/assets/images/icon/popular.png" alt="" style="vertical-align: middle;" />';
2113
                    }
2114
                    if (2 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2115
                        $pop = '<em>' . _MD_XOOPSTUBE_POPULAR . '!</em>';
2116
                    }