Code Duplication    Length = 10-10 lines in 2 locations

src/CliMenu.php 2 locations

@@ 412-421 (lines=10) @@
409
     * @param string $text
410
     * @return Flash
411
     */
412
    public function flash($text)
413
    {
414
        $this->guardSingleLine($text);
415
416
        $style = (new MenuStyle($this->terminal))
417
            ->setBg('yellow')
418
            ->setFg('red');
419
420
        return new Flash($this, $style, $this->terminal, $text);
421
    }
422
423
    /**
424
     * @param string $text
@@ 427-436 (lines=10) @@
424
     * @param string $text
425
     * @return Confirm
426
     */
427
    public function confirm($text)
428
    {
429
        $this->guardSingleLine($text);
430
431
        $style = (new MenuStyle($this->terminal))
432
            ->setBg('yellow')
433
            ->setFg('red');
434
435
        return new Confirm($this, $style, $this->terminal, $text);
436
    }
437
438
    public function askNumber() : Number
439
    {