We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c1e9b commit ff9df06Copy full SHA for ff9df06
src/CliMenuBuilder.php
@@ -136,13 +136,9 @@ public function addLineBreak(string $breakChar = ' ', int $lines = 1) : self
136
return $this;
137
}
138
139
- public function addAsciiArt(string $art, string $position = AsciiArtItem::POSITION_CENTER) : self
+ public function addAsciiArt(string $art, string $position = AsciiArtItem::POSITION_CENTER, string $alt) : self
140
{
141
- $asciiArtItem = new AsciiArtItem($art, $position);
142
-
143
- if ($asciiArtItem->getArtLength() <= $this->getMenuStyle()->getContentWidth()) {
144
- $this->addMenuItem($asciiArtItem);
145
- }
+ $this->addMenuItem(new AsciiArtItem($art, $position, $alt));
146
147
148
0 commit comments