Code Duplication    Length = 5-5 lines in 2 locations

src/HTMLForm/Form.php 1 location

@@ 52-56 (lines=5) @@
49
     */
50
    public function offsetSet($offset, $value)
51
    {
52
        if (is_null($offset)) {
53
            $this->elements[] = $value;
54
        } else {
55
            $this->elements[$offset] = $value;
56
        }
57
    }
58
    
59
    public function offsetExists($offset)

src/HTMLForm/FormElement.php 1 location

@@ 45-49 (lines=5) @@
42
     */
43
    public function offsetSet($offset, $value)
44
    {
45
        if (is_null($offset)) {
46
            $this->attributes[] = $value;
47
        } else {
48
            $this->attributes[$offset] = $value;
49
        }
50
    }
51
    
52