Code Duplication    Length = 10-10 lines in 2 locations

class/utility.php 2 locations

@@ 105-114 (lines=10) @@
102
     *
103
     * @return boolean
104
     */
105
    public static function isX23()
106
    {
107
        $x23 = false;
108
        $xv  = str_replace('XOOPS ', '', XOOPS_VERSION);
109
        if ((int)substr($xv, 2, 1) >= 3) {
110
            $x23 = true;
111
        }
112
113
        return $x23;
114
    }
115
116
    /**
117
     * Is Xoops 2.0.x ?
@@ 121-130 (lines=10) @@
118
     *
119
     * @return boolean
120
     */
121
    public static function isX20()
122
    {
123
        $x20 = false;
124
        $xv  = str_replace('XOOPS ', '', XOOPS_VERSION);
125
        if (substr($xv, 2, 1) == '0') {
126
            $x20 = true;
127
        }
128
129
        return $x20;
130
    }
131
132
    /**
133
     * Create (in a link) a javascript confirmation's box