Changeset View
Changeset View
Standalone View
Standalone View
src/console/view/PhutilConsoleTable.php
Context not available. | |||||
foreach ($data as $key => $value) { | foreach ($data as $key => $value) { | ||||
$this->widths[$key] = max( | $this->widths[$key] = max( | ||||
idx($this->widths, $key, 0), | idx($this->widths, $key, 0), | ||||
phutil_utf8_console_strlen($value)); | phutil_utf8_consolestrlen($value)); | ||||
Ekubischta: Find and Replace bug | |||||
} | } | ||||
return $this; | return $this; | ||||
Context not available. | |||||
protected function getWidth($key) { | protected function getWidth($key) { | ||||
$width = max( | $width = max( | ||||
idx($this->widths, $key), | idx($this->widths, $key), | ||||
phutil_utf8_console_strlen( | phutil_utf8_consolestrlen( | ||||
EkubischtaUnsubmitted Not Done Inline ActionsFind and Replace bug Ekubischta: Find and Replace bug | |||||
idx(idx($this->columns, $key, array()), 'title', ''))); | idx(idx($this->columns, $key, array()), 'title', ''))); | ||||
return $width + 2 * $this->padding; | return $width + 2 * $this->padding; | ||||
Context not available. | |||||
protected function alignString($string, $width, $align) { | protected function alignString($string, $width, $align) { | ||||
$num_padding = $width - | $num_padding = $width - | ||||
(2 * $this->padding) - phutil_utf8_console_strlen($string); | (2 * $this->padding) - phutil_utf8_consolestrlen($string); | ||||
EkubischtaUnsubmitted Not Done Inline ActionsFind and Replace bug Ekubischta: Find and Replace bug | |||||
switch ($align) { | switch ($align) { | ||||
case self::ALIGN_LEFT: | case self::ALIGN_LEFT: | ||||
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
Find and Replace bug