Changeset View
Changeset View
Standalone View
Standalone View
src/ref/ArcanistRefView.php
Context not available. | |||||
$title = $this->getTitle(); | $title = $this->getTitle(); | ||||
if ($object_name !== null) { | if ($object_name !== null) { | ||||
$reserve_width = phutil_utf8_console_strlen($object_name) + 1; | $reserve_width = phutil_utf8_consolestrlen($object_name) + 1; | ||||
} else { | } else { | ||||
$reserve_width = 0; | $reserve_width = 0; | ||||
} | } | ||||
Context not available. | |||||
} else { | } else { | ||||
$indent_text = ''; | $indent_text = ''; | ||||
} | } | ||||
$indent_width = strlen($indent_text); | $indent_width = @strlen($indent_text); | ||||
$marker_width = 6; | $marker_width = 6; | ||||
$display_width = phutil_console_get_terminal_width(); | $display_width = phutil_console_get_terminal_width(); | ||||
Context not available. | |||||
->truncateString($title); | ->truncateString($title); | ||||
if ($object_name !== null) { | if ($object_name !== null) { | ||||
if (strlen($title)) { | if (@strlen($title)) { | ||||
$display_text = tsprintf('**%s** %s', $object_name, $title); | $display_text = tsprintf('**%s** %s', $object_name, $title); | ||||
} else { | } else { | ||||
$display_text = tsprintf('**%s**', $object_name); | $display_text = tsprintf('**%s**', $object_name); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0