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

@@ 64-68 (lines=5) @@
61
     */
62
    public function offsetSet($offset, $value)
63
    {
64
        if (is_null($offset)) {
65
            $this->attributes[] = $value;
66
        } else {
67
            $this->attributes[$offset] = $value;
68
        }
69
    }
70
71