Code Duplication    Length = 17-17 lines in 2 locations

class/oledrion_utils.php 1 location

@@ 585-601 (lines=17) @@
582
     *
583
     * @return boolean Yes = we need to add them, false = no
584
     */
585
    public static function needsAsterisk()
586
    {
587
        if (static::isX23()) {
588
            return false;
589
        }
590
        if (strpos(strtolower(XOOPS_VERSION), 'impresscms') !== false) {
591
            return false;
592
        }
593
        if (strpos(strtolower(XOOPS_VERSION), 'legacy') === false) {
594
            $xv = xoops_trim(str_replace('XOOPS ', '', XOOPS_VERSION));
595
            if ((int)substr($xv, 4, 2) >= 17) {
596
                return false;
597
            }
598
        }
599
600
        return true;
601
    }
602
603
    /**
604
     * Mark the mandatory fields of a form with a star

class/utility.php 1 location

@@ 728-744 (lines=17) @@
725
     *
726
     * @return boolean Yes = we need to add them, false = no
727
     */
728
    public static function needsAsterisk()
729
    {
730
        if (self::isX23()) {
731
            return false;
732
        }
733
        if (strpos(strtolower(XOOPS_VERSION), 'impresscms') !== false) {
734
            return false;
735
        }
736
        if (strpos(strtolower(XOOPS_VERSION), 'legacy') === false) {
737
            $xv = xoops_trim(str_replace('XOOPS ', '', XOOPS_VERSION));
738
            if ((int)substr($xv, 4, 2) >= 17) {
739
                return false;
740
            }
741
        }
742
743
        return true;
744
    }
745
746
    /**
747
     * Mark the mandatory fields of a form with a star