Code Duplication    Length = 8-8 lines in 2 locations

src/Form/Elements/Checkbox.php 1 location

@@ 73-80 (lines=8) @@
70
        return implode(',', $value);
71
    }
72
73
    public function toArray()
74
    {
75
        return parent::toArray() + [
76
                'min'          => $this->getMin(),
77
                'max'          => $this->getMax(),
78
                'showCheckAll' => $this->isShowCheckAll(),
79
            ];
80
    }
81
}
82

src/Form/Elements/Number.php 1 location

@@ 55-62 (lines=8) @@
52
            ];
53
    }
54
55
    public function toArray()
56
    {
57
        return parent::toArray() + [
58
                'min'      => $this->getMin(),
59
                'max'      => $this->getMax(),
60
                'step'     => $this->step,
61
            ];
62
    }
63
}
64