src/MenuItem/AsciiArtItem.php
public function getRows(MenuStyle $style, bool $selected = false) : array
    {
        if ($this->artLength > $style->getContentWidth()) {
            $alternate = new StaticItem($this->alternateText);
            return $alternate->getRows($style, false);
        }

        $padding = $style->getContentWidth() - $this->artLength;

        return array_map(function ($row) use ($padding) {
            switch ($this->position) {
                case self::POSITION_LEFT:
                    break;
                case self::POSITION_RIGHT:
                    $row = sprintf('%s%s', str_repeat(' ', $padding), $row);
                    break;
                case self::POSITION_CENTER:
                default:
                    $left = (int) ceil($padding / 2);
                    $row = sprintf('%s%s', str_repeat(' ', $left), $row);
                    break;
            }

            return $row;
        }, explode("\n", $this->text));
    }
public function getRows(MenuStyle $style, bool $selected = false) : array
    {
        if ($this->artLength > $style->getContentWidth()) {
            $alternate = new StaticItem($this->alternateText);
            return $alternate->getRows($style, false);
        }

        $padding = $style->getContentWidth() - $this->artLength;

        return array_map(function ($row) use ($padding) {
            switch ($this->position) {
                case self::POSITION_LEFT:
                    break;
                case self::POSITION_RIGHT:
                    $row = sprintf('%s%s', str_repeat(' ', $padding), $row);
                    break;
                case self::POSITION_CENTER:
                default:
                    $left = (int) ceil($padding / 2);
                    $row = sprintf('%s%s', str_repeat(' ', $left), $row);
                    break;
            }

            return $row;
        }, explode("\n", $this->text));
    }
The output text for the item