Code Duplication    Length = 10-11 lines in 2 locations

src/CliMenuBuilder.php 1 location

@@ 212-221 (lines=10) @@
209
        return $this;
210
    }
211
212
    public function setForegroundColour(string $colour, string $fallback = null) : self
213
    {
214
        $this->style['fg'] = ColourUtil::validateColour(
215
            $this->terminal,
216
            $colour,
217
            $fallback
218
        );
219
220
        return $this;
221
    }
222
223
    public function setWidth(int $width) : self
224
    {

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
    {