Code Duplication    Length = 15-15 lines in 2 locations

class/utility.php 2 locations

@@ 1704-1718 (lines=15) @@
1701
    /**
1702
     * @return bool
1703
     */
1704
    public static function isTagModuleIncluded()
1705
    {
1706
        static $wfl_tag_module_included;
1707
        if (!isset($wfl_tag_module_included)) {
1708
            $modulesHandler = xoops_getHandler('module');
1709
            $tag_mod        = $modulesHandler->getByDirName('tag');
1710
            if (!$tag_mod) {
1711
                $tag_mod = false;
1712
            } else {
1713
                $wfl_tag_module_included = $tag_mod->getVar('isactive') == 1;
1714
            }
1715
        }
1716
1717
        return $wfl_tag_module_included;
1718
    }
1719
1720
    // Add item_tag to Tag-module
1721
@@ 1741-1755 (lines=15) @@
1738
    /**
1739
     * @return bool
1740
     */
1741
    public static function isNewsModuleIncluded()
1742
    {
1743
        static $wfl_news_module_included;
1744
        if (!isset($wfl_news_module_included)) {
1745
            $modulesHandler = xoops_getHandler('module');
1746
            $news_mod       = $modulesHandler->getByDirName('news');
1747
            if (!$news_mod) {
1748
                $news_mod = false;
1749
            } else {
1750
                $wfl_news_module_included = $news_mod->getVar('isactive') == 1;
1751
            }
1752
        }
1753
1754
        return $wfl_news_module_included;
1755
    }
1756
1757
    /**
1758
     * @param $banner_id