Code Duplication    Length = 10-11 lines in 3 locations

src/CliMenuBuilder.php 1 location

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

src/MenuStyle.php 2 locations

@@ 309-319 (lines=11) @@
306
        return $this->fg;
307
    }
308
309
    public function setFg($fg, string $fallback = null) : self
310
    {
311
        $this->fg = ColourUtil::validateColour(
312
            $this->terminal,
313
            $fg,
314
            $fallback
315
        );
316
        $this->generateColoursSetCode();
317
318
        return $this;
319
    }
320
321
    public function getBg()
322
    {
@@ 326-336 (lines=11) @@
323
        return $this->bg;
324
    }
325
326
    public function setBg($bg, string $fallback = null) : self
327
    {
328
        $this->bg = ColourUtil::validateColour(
329
            $this->terminal,
330
            $bg,
331
            $fallback
332
        );
333
        $this->generateColoursSetCode();
334
335
        return $this;
336
    }
337
338
    public function getWidth() : int
339
    {