Code Duplication    Length = 10-10 lines in 2 locations

src/Form/Field/Checkbox.php 1 location

@@ 44-53 (lines=10) @@
41
     *
42
     * @return $this
43
     */
44
    public function checked($checked = [])
45
    {
46
        if ($checked instanceof Arrayable) {
47
            $checked = $checked->toArray();
48
        }
49
50
        $this->checked = (array) $checked;
51
52
        return $this;
53
    }
54
55
    /**
56
     * Draw inline checkboxes.

src/Form/Field.php 1 location

@@ 465-474 (lines=10) @@
462
     *
463
     * @return $this
464
     */
465
    public function checked($checked = [])
466
    {
467
        if ($checked instanceof Arrayable) {
468
            $checked = $checked->toArray();
469
        }
470
471
        $this->checked = array_merge($this->checked, $checked);
472
473
        return $this;
474
    }
475
476
    /**
477
     * Get or set rules.