Code Duplication    Length = 10-10 lines in 3 locations

src/Form/Field.php 1 location

@@ 486-495 (lines=10) @@
483
     *
484
     * @return $this
485
     */
486
    public function options($options = [])
487
    {
488
        if ($options instanceof Arrayable) {
489
            $options = $options->toArray();
490
        }
491
492
        $this->options = array_merge($this->options, $options);
493
494
        return $this;
495
    }
496
497
    /**
498
     * Set the field option checked.

src/Form/Field/Radio.php 1 location

@@ 27-36 (lines=10) @@
24
     *
25
     * @return $this
26
     */
27
    public function options($options = [])
28
    {
29
        if ($options instanceof Arrayable) {
30
            $options = $options->toArray();
31
        }
32
33
        $this->options = (array) $options;
34
35
        return $this;
36
    }
37
38
    /**
39
     * Set checked.

src/Grid/Filter/Presenter/Radio.php 1 location

@@ 27-36 (lines=10) @@
24
     *
25
     * @param array $options
26
     */
27
    public function __construct($options = [])
28
    {
29
        if ($options instanceof Arrayable) {
30
            $options = $options->toArray();
31
        }
32
33
        $this->options = (array) $options;
34
35
        return $this;
36
    }
37
38
    /**
39
     * Draw stacked radios.