Code Duplication    Length = 15-15 lines in 2 locations

class/utility.php 2 locations

@@ 1495-1509 (lines=15) @@
1492
    /**
1493
     * @return bool
1494
     */
1495
    public static function isTagModuleIncluded()
1496
    {
1497
        static $wfl_tag_module_included;
1498
        if (!isset($wfl_tag_module_included)) {
1499
            $modulesHandler = xoops_getHandler('module');
1500
            $tag_mod        = $modulesHandler->getByDirName('tag');
1501
            if (!$tag_mod) {
1502
                $tag_mod = false;
1503
            } else {
1504
                $wfl_tag_module_included = $tag_mod->getVar('isactive') == 1;
1505
            }
1506
        }
1507
1508
        return $wfl_tag_module_included;
1509
    }
1510
1511
    // Add item_tag to Tag-module
1512
@@ 1532-1546 (lines=15) @@
1529
    /**
1530
     * @return bool
1531
     */
1532
    public static function isNewsModuleIncluded()
1533
    {
1534
        static $wfl_news_module_included;
1535
        if (!isset($wfl_news_module_included)) {
1536
            $modulesHandler = xoops_getHandler('module');
1537
            $news_mod       = $modulesHandler->getByDirName('news');
1538
            if (!$news_mod) {
1539
                $news_mod = false;
1540
            } else {
1541
                $wfl_news_module_included = $news_mod->getVar('isactive') == 1;
1542
            }
1543
        }
1544
1545
        return $wfl_news_module_included;
1546
    }
1547
1548
    /**
1549
     * @param $banner_id