Code Duplication    Length = 10-10 lines in 3 locations

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.

src/Form/Field.php 1 location

@@ 509-518 (lines=10) @@
506
     *
507
     * @return $this
508
     */
509
    public function options($options = [])
510
    {
511
        if ($options instanceof Arrayable) {
512
            $options = $options->toArray();
513
        }
514
515
        $this->options = array_merge($this->options, $options);
516
517
        return $this;
518
    }
519
520
    /**
521
     * Set the field option checked.

src/Form/Field/Radio.php 1 location

@@ 34-43 (lines=10) @@
31
     *
32
     * @return $this
33
     */
34
    public function options($options = [])
35
    {
36
        if ($options instanceof Arrayable) {
37
            $options = $options->toArray();
38
        }
39
40
        $this->options = (array) $options;
41
42
        return $this;
43
    }
44
45
    /**
46
     * Set checked.