Code Duplication    Length = 7-7 lines in 2 locations

htdocs/xoops_lib/Xoops.php 2 locations

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