Code Duplication    Length = 10-11 lines in 2 locations

src/MenuStyle.php 1 location

@@ 333-343 (lines=11) @@
330
        return $this->fg;
331
    }
332
333
    public function setFg(string $fg, string $fallback = null) : self
334
    {
335
        $this->fg = ColourUtil::validateColour(
336
            $this->terminal,
337
            $fg,
338
            $fallback
339
        );
340
        $this->generateColoursSetCode();
341
342
        return $this;
343
    }
344
345
    public function getBg()
346
    {

src/CliMenuBuilder.php 1 location

@@ 175-184 (lines=10) @@
172
        return $this;
173
    }
174
175
    public function setForegroundColour(string $colour, string $fallback = null) : self
176
    {
177
        $this->style['fg'] = ColourUtil::validateColour(
178
            $this->terminal,
179
            $colour,
180
            $fallback
181
        );
182
183
        return $this;
184
    }
185
186
    public function setWidth(int $width) : self
187
    {