Code Duplication    Length = 5-5 lines in 2 locations

mod/wet4/views/default/input/select.php 1 location

@@ 50-54 (lines=5) @@
47
$vars['multiple'] = !empty($vars['multiple']);
48
49
// Add trailing [] to name if multiple is enabled to allow the form to send multiple values
50
if ($vars['multiple'] && !empty($vars['name']) && is_string($vars['name'])) {
51
    if (substr($vars['name'], -2) != '[]') {
52
        $vars['name'] = $vars['name'] . '[]';
53
    }
54
}
55
56
$options_list = '';
57

views/default/input/select.php 1 location

@@ 46-50 (lines=5) @@
43
$vars['multiple'] = !empty($vars['multiple']);
44
45
// Add trailing [] to name if multiple is enabled to allow the form to send multiple values
46
if ($vars['multiple'] && !empty($vars['name']) && is_string($vars['name'])) {
47
    if (substr($vars['name'], -2) != '[]') {
48
        $vars['name'] = $vars['name'] . '[]';
49
    }
50
}
51
52
$options_list = '';
53