Code Duplication    Length = 3-3 lines in 3 locations

class/utility.php 3 locations

@@ 2113-2115 (lines=3) @@
2110
        if (3 != $GLOBALS['xoopsModuleConfig']['displayicons']) {
2111
            if ($newdate < $time) {
2112
                if ((int)$status > 1) {
2113
                    if (1 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2114
                        $new = '&nbsp;<img src="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/assets/images/icon/updated.gif" alt="" style="vertical-align: middle;" />';
2115
                    }
2116
                    if (2 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2117
                        $new = '<em>' . _MD_XOOPSTUBE_UPDATED . '</em>';
2118
                    }
@@ 2120-2122 (lines=3) @@
2117
                        $new = '<em>' . _MD_XOOPSTUBE_UPDATED . '</em>';
2118
                    }
2119
                } else {
2120
                    if (1 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2121
                        $new = '&nbsp;<img src="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/assets/images/icon/new.gif" alt="" style="vertical-align: middle;" />';
2122
                    }
2123
                    if (2 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2124
                        $new = '<em>' . _MD_XOOPSTUBE_NEW . '</em>';
2125
                    }
@@ 2130-2132 (lines=3) @@
2127
            }
2128
            if ($popdate > $time) {
2129
                if ($counter >= $GLOBALS['xoopsModuleConfig']['popular']) {
2130
                    if (1 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2131
                        $pop = '&nbsp;<img src="' . XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/assets/images/icon/popular.png" alt="" style="vertical-align: middle;" />';
2132
                    }
2133
                    if (2 == $GLOBALS['xoopsModuleConfig']['displayicons']) {
2134
                        $pop = '<em>' . _MD_XOOPSTUBE_POPULAR . '!</em>';
2135
                    }