Code Duplication    Length = 8-8 lines in 2 locations

class/utilities.php 2 locations

@@ 1990-1997 (lines=8) @@
1987
                if (strlen($value >= $lengthcheck)) {
1988
                    return null;
1989
                }
1990
                if (ctype_digit($value)) {
1991
                    $value = (int)$value;
1992
                } else {
1993
                    if (true === $strict) {
1994
                        $value = preg_replace('/\W/', '', trim($value));
1995
                    }
1996
                    $value = strtolower((string)$value);
1997
                }
1998
                $globals[$k] = $value;
1999
            }
2000
@@ 2008-2015 (lines=8) @@
2005
        } else {
2006
            $value = strip_tags(trim($array[$name]));
2007
        }
2008
        if (ctype_digit($value)) {
2009
            $value = (int)$value;
2010
        } else {
2011
            if (true === $strict) {
2012
                $value = preg_replace('/\W/', '', trim($value));
2013
            }
2014
            $value = strtolower((string)$value);
2015
        }
2016
2017
        return $value;
2018
    }