Skip to content

Commit ff9df06

Browse files
authored
Update CliMenuBuilder.php
1 parent 74c1e9b commit ff9df06

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/CliMenuBuilder.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,9 @@ public function addLineBreak(string $breakChar = ' ', int $lines = 1) : self
136136
return $this;
137137
}
138138

139-
public function addAsciiArt(string $art, string $position = AsciiArtItem::POSITION_CENTER) : self
139+
public function addAsciiArt(string $art, string $position = AsciiArtItem::POSITION_CENTER, string $alt) : self
140140
{
141-
$asciiArtItem = new AsciiArtItem($art, $position);
142-
143-
if ($asciiArtItem->getArtLength() <= $this->getMenuStyle()->getContentWidth()) {
144-
$this->addMenuItem($asciiArtItem);
145-
}
141+
$this->addMenuItem(new AsciiArtItem($art, $position, $alt));
146142

147143
return $this;
148144
}

0 commit comments

Comments
 (0)