Code Duplication    Length = 10-11 lines in 2 locations

src/MenuStyle.php 1 location

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

src/CliMenuBuilder.php 1 location

@@ 224-233 (lines=10) @@
221
        return $this;
222
    }
223
224
    public function setForegroundColour(string $colour, string $fallback = null) : self
225
    {
226
        $this->style['fg'] = ColourUtil::validateColour(
227
            $this->terminal,
228
            $colour,
229
            $fallback
230
        );
231
232
        return $this;
233
    }
234
235
    public function setWidth(int $width) : self
236
    {