Skip to content

Commit cf5bff2

Browse files
committed
AbstractHtml::expandTabs() has a default $tabSize = 4
This makes more sense than -1 since the method name is expandTabs. Signed-off-by: Jack Cherng <[email protected]>
1 parent b0f7e81 commit cf5bff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renderer/Html/AbstractHtml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ protected function formatLines(array $lines): array
214214
*
215215
* @return string the string with the tabs converted to spaces
216216
*/
217-
protected function expandTabs(string $string, int $tabSize = -1): string
217+
protected function expandTabs(string $string, int $tabSize = 4): string
218218
{
219219
return $tabSize >= 0
220220
? \str_replace("\t", \str_repeat(' ', $tabSize), $string)

0 commit comments

Comments
 (0)