Code Duplication    Length = 3-3 lines in 2 locations

catalog/includes/OSC/OM/HTML.php 2 locations

@@ 213-215 (lines=3) @@
210
        if (($reinsert_value == true) && ((isset($_GET[$name]) && is_string($_GET[$name])) || (isset($_POST[$name]) && is_string($_POST[$name])))) {
211
            if (isset($_GET[$name]) && is_string($_GET[$name])) {
212
                $field .= static::outputProtected($_GET[$name]);
213
            } elseif (isset($_POST[$name]) && is_string($_POST[$name])) {
214
                $field .= static::outputProtected($_POST[$name]);
215
            }
216
        } elseif (strlen($text) > 0) {
217
            $field .= static::outputProtected($text);
218
        }
@@ 306-308 (lines=3) @@
303
        } elseif ((isset($_GET[$name]) && is_string($_GET[$name])) || (isset($_POST[$name]) && is_string($_POST[$name]))) {
304
            if (isset($_GET[$name]) && is_string($_GET[$name])) {
305
                $field .= ' value="' . static::output($_GET[$name]) . '"';
306
            } elseif (isset($_POST[$name]) && is_string($_POST[$name])) {
307
                $field .= ' value="' . static::output($_POST[$name]) . '"';
308
            }
309
        }
310
311
        if (!empty($parameters)) {