Code Duplication    Length = 8-8 lines in 2 locations

include/functions.php 2 locations

@@ 146-153 (lines=8) @@
143
            if (strlen($value >= $lengthcheck)) {
144
                return null;
145
            }
146
            if (ctype_digit($value)) {
147
                $value = (int)$value;
148
            } else {
149
                if ($strict === true) {
150
                    $value = preg_replace('/\W/', '', trim($value));
151
                }
152
                $value = strtolower((string)$value);
153
            }
154
            $globals[$k] = $value;
155
        }
156
@@ 164-171 (lines=8) @@
161
    } else {
162
        $value = strip_tags(trim($array[$name]));
163
    }
164
    if (ctype_digit($value)) {
165
        $value = (int)$value;
166
    } else {
167
        if ($strict === true) {
168
            $value = preg_replace('/\W/', '', trim($value));
169
        }
170
        $value = strtolower((string)$value);
171
    }
172
173
    return $value;
174
}