Code Duplication    Length = 8-8 lines in 2 locations

htdocs/modules/wflinks/include/functions.php 2 locations

@@ 121-128 (lines=8) @@
118
            if ( strlen( $value >= $lengthcheck ) ) {
119
                return null;
120
            }
121
            if ( ctype_digit( $value ) ) {
122
                $value = intval( $value );
123
            } else {
124
                if ($strict == true) {
125
                    $value = preg_replace( '/\W/', '', trim( $value ) );
126
                }
127
                $value = strtolower( strval( $value ) );
128
            }
129
            $globals[$k] = $value;
130
        }
131
@@ 139-146 (lines=8) @@
136
    } else {
137
        $value = strip_tags( trim( $array[$name] ) );
138
    }
139
    if ( ctype_digit( $value ) ) {
140
        $value = intval( $value );
141
    } else {
142
        if ($strict == true) {
143
            $value = preg_replace( '/\W/', '', trim( $value ) );
144
        }
145
        $value = strtolower( strval( $value ) );
146
    }
147
148
    return $value;
149
}