Code Duplication    Length = 3-5 lines in 2 locations

src/Ffcms/Core/Helper/HTML/Form/MultiSelectField.php 2 locations

@@ 59-61 (lines=3) @@
56
            if ($optionsKey === true) {
57
                $optionProperty['value'] = $val;
58
                // check if current element is active
59
                if (Obj::isArray($this->value) && Arr::in((string)$val, $this->value)) {
60
                    $optionProperty['selected'] = 'selected';
61
                }
62
            } else {
63
                if (Obj::isArray($this->value) && Arr::in((string)$text, $this->value)) {
64
                    $optionProperty['selected'] = 'selected';
@@ 62-66 (lines=5) @@
59
                if (Obj::isArray($this->value) && Arr::in((string)$val, $this->value)) {
60
                    $optionProperty['selected'] = 'selected';
61
                }
62
            } else {
63
                if (Obj::isArray($this->value) && Arr::in((string)$text, $this->value)) {
64
                    $optionProperty['selected'] = 'selected';
65
                }
66
            }
67
            $optionsDOM .= self::buildContainerTag('option', $optionProperty, $text);
68
        }
69