Code Duplication    Length = 10-10 lines in 2 locations

class/xoopstube_utils.php 2 locations

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