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 c952316 commit 8e41446Copy full SHA for 8e41446
src/Component/Formatter/Title.php
@@ -36,7 +36,11 @@ public static function show(string $title, array $opts = []): void
36
$width = (int)$opts['width'];
37
$char = trim($opts['char']);
38
$indent = (int)$opts['indent'] >= 0 ? $opts['indent'] : 2;
39
- $indentStr = Str::pad(self::CHAR_SPACE, $indent, self::CHAR_SPACE);
+
40
+ $indentStr = '';
41
+ if ($indent > 0) {
42
+ $indentStr = Str::pad(self::CHAR_SPACE, $indent, self::CHAR_SPACE);
43
+ }
44
45
$title = $opts['ucWords'] ? ucwords(trim($title)) : trim($title);
46
$tLength = Str::len($title);
0 commit comments