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

@@ 438-447 (lines=10) @@
435
     *
436
     * @return $this
437
     */
438
    public function checked($checked = [])
439
    {
440
        if ($checked instanceof Arrayable) {
441
            $checked = $checked->toArray();
442
        }
443
444
        $this->checked = array_merge($this->checked, $checked);
445
446
        return $this;
447
    }
448
449
    /**
450
     * Get or set rules.