Code Duplication    Length = 9-9 lines in 2 locations

src/Html/Editor/Options.php 2 locations

@@ 16-24 (lines=9) @@
13
     *
14
     * @return Options
15
     */
16
    public static function yesNo()
17
    {
18
        $data = [
19
            ['label' => __('Yes'), 'value' => true],
20
            ['label' => __('No'), 'value' => false],
21
        ];
22
23
        return new static($data);
24
    }
25
26
    /**
27
     * Get options from a model.
@@ 76-84 (lines=9) @@
73
     *
74
     * @return Options
75
     */
76
    public static function trueFalse()
77
    {
78
        $data = [
79
            ['label' => __('True'), 'value' => true],
80
            ['label' => __('False'), 'value' => false],
81
        ];
82
83
        return new static($data);
84
    }
85
86
    /**
87
     * Push an item onto the end of the collection.