Changeset View
Changeset View
Standalone View
Standalone View
src/console/view/PhutilConsoleList.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | if ($this->bullet !== null) { | ||||
$indent_depth = $indent_depth + phutil_utf8_console_strlen($bullet); | $indent_depth = $indent_depth + phutil_utf8_console_strlen($bullet); | ||||
} else { | } else { | ||||
$bullet = ''; | $bullet = ''; | ||||
} | } | ||||
$output = array(); | $output = array(); | ||||
foreach ($this->getItems() as $item) { | foreach ($this->getItems() as $item) { | ||||
if ($this->wrap) { | if ($this->wrap) { | ||||
$item = phutil_console_wrap($item, $indent_depth); | $item = tsprintf('%s', $item) | ||||
->applyIndent($indent_depth, false); | |||||
} | } | ||||
$output[] = $indent_string.$bullet.$item; | $output[] = $indent_string.$bullet.$item; | ||||
} | } | ||||
return $this->drawLines($output); | return $this->drawLines($output); | ||||
} | } | ||||
} | } |