Code Duplication    Length = 8-8 lines in 2 locations

include/functions.php 2 locations

@@ 170-177 (lines=8) @@
167
            if (strlen($value >= $lengthcheck)) {
168
                return null;
169
            }
170
            if (ctype_digit($value)) {
171
                $value = intval($value);
172
            } else {
173
                if ($strict == true) {
174
                    $value = preg_replace('/\W/', '', trim($value));
175
                }
176
                $value = strtolower(strval($value));
177
            }
178
            $globals[$k] = $value;
179
        }
180
@@ 188-195 (lines=8) @@
185
    } else {
186
        $value = strip_tags(trim($array[$name]));
187
    }
188
    if (ctype_digit($value)) {
189
        $value = intval($value);
190
    } else {
191
        if ($strict == true) {
192
            $value = preg_replace('/\W/', '', trim($value));
193
        }
194
        $value = strtolower(strval($value));
195
    }
196
197
    return $value;
198
}