Code Duplication    Length = 10-10 lines in 2 locations

src/Form/Field.php 1 location

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

src/Form/Field/Radio.php 1 location

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