function ShowCommand::writeTreeLine
2 calls to ShowCommand::writeTreeLine()
- ShowCommand::displayPackageTree in vendor/
composer/ composer/ src/ Composer/ Command/ ShowCommand.php - Display the tree
- ShowCommand::displayTree in vendor/
composer/ composer/ src/ Composer/ Command/ ShowCommand.php - Display a package tree
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ ShowCommand.php, line 1447
Class
- ShowCommand
- @author Robert Schönthal <seroscho@googlemail.com> @author Jordi Boggiano <j.boggiano@seld.be> @author Jérémy Romey <jeremyFreeAgent> @author Mihai Plasoianu <mihai@plasoianu.de>
Namespace
Composer\CommandCode
private function writeTreeLine(string $line) : void {
$io = $this->getIO();
if (!$io->isDecorated()) {
$line = str_replace([
'└',
'├',
'──',
'│',
], [
'`-',
'|-',
'-',
'|',
], $line);
}
$io->write($line);
}