Code Duplication    Length = 7-7 lines in 2 locations

htdocs/xoops_lib/Xoops.php 2 locations

@@ 1601-1607 (lines=7) @@
1598
        }
1599
        $xoops_theme_path = \XoopsBaseConfig::get('themes-path');
1600
        $xoops_theme_url = \XoopsBaseConfig::get('themes-url');
1601
        if (is_dir($xoops_theme_path . '/' . $theme)) {
1602
            if (XoopsLoad::fileExists($xoops_theme_path . '/' . $theme . '/' . $str_css)) {
1603
                return $xoops_theme_url . '/' . $theme . '/' . $str_css;
1604
            } elseif (XoopsLoad::fileExists($xoops_theme_path . '/' . $theme . '/style.css')) {
1605
                return $xoops_theme_url . '/' . $theme . '/style.css';
1606
            }
1607
        }
1608
        if (is_dir($xoops_theme_path . '/' . $theme . '/css')) {
1609
            if (XoopsLoad::fileExists($xoops_theme_path . '/' . $theme . '/css/' . $str_css)) {
1610
                return $xoops_theme_url . '/' . $theme . '/css/' . $str_css;
@@ 1608-1614 (lines=7) @@
1605
                return $xoops_theme_url . '/' . $theme . '/style.css';
1606
            }
1607
        }
1608
        if (is_dir($xoops_theme_path . '/' . $theme . '/css')) {
1609
            if (XoopsLoad::fileExists($xoops_theme_path . '/' . $theme . '/css/' . $str_css)) {
1610
                return $xoops_theme_url . '/' . $theme . '/css/' . $str_css;
1611
            } elseif (XoopsLoad::fileExists($xoops_theme_path . '/' . $theme . '/css/style.css')) {
1612
                return $xoops_theme_url . '/' . $theme . '/css/style.css';
1613
            }
1614
        }
1615
        return '';
1616
    }
1617