Changeset View
Changeset View
Standalone View
Standalone View
src/progress/PhutilConsoleProgressSink.php
Context not available. | |||||
$tail = ''; | $tail = ''; | ||||
if ($this->lineWidth) { | if ($this->lineWidth) { | ||||
$line_len = strlen($line); | $line_len = @strlen($line); | ||||
if ($line_len < $this->lineWidth) { | if ($line_len < $this->lineWidth) { | ||||
$tail = str_repeat(' ', $this->lineWidth - $line_len); | $tail = str_repeat(' ', $this->lineWidth - $line_len); | ||||
} | } | ||||
$this->lineWidth = strlen($line); | $this->lineWidth = @strlen($line); | ||||
} | } | ||||
$this->printLine($head.$line.$tail); | $this->printLine($head.$line.$tail); | ||||
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