Code Duplication    Length = 3-3 lines in 2 locations

src/Suricate/FormItem.php 2 locations

@@ 69-71 (lines=3) @@
66
        $itemData['name']   = $name;
67
        $itemData['value']  = $value;
68
        $itemData['label']  = $label;
69
        if ($label !== null && !isset($htmlAttributes['id'])) {
70
            $itemData['id']     = $name;
71
        }
72
        $itemData = array_merge($itemData, $htmlAttributes);
73
74
        $item = new FormItem($itemData);
@@ 222-224 (lines=3) @@
219
        $itemData['name']   = $name;
220
        $itemData['value']  = $value;
221
        $itemData['label']  = $label;
222
        if ($label !== null && !isset($htmlAttributes['id'])) {
223
            $itemData['id']     = $name;
224
        }
225
        $itemData = array_merge($itemData, $htmlAttributes);
226
227
        $item = new FormItem($itemData);