Code Duplication    Length = 8-8 lines in 2 locations

src/Form/Elements/Checkbox.php 1 location

@@ 110-117 (lines=8) @@
107
        return $this;
108
    }
109
110
    public function toArray()
111
    {
112
        return parent::toArray() + [
113
                'min'          => $this->getMin(),
114
                'max'          => $this->getMax(),
115
                'showCheckAll' => $this->isShowCheckAll(),
116
            ];
117
    }
118
}
119

src/Form/Elements/Number.php 1 location

@@ 128-135 (lines=8) @@
125
            ];
126
    }
127
128
    public function toArray()
129
    {
130
        return parent::toArray() + [
131
                'min'  => $this->getMin(),
132
                'max'  => $this->getMax(),
133
                'step' => $this->getStep(),
134
            ];
135
    }
136
}
137