function BaseDependencyCommand::writeTreeLine
1 call to BaseDependencyCommand::writeTreeLine()
- BaseDependencyCommand::printTree in vendor/
composer/ composer/ src/ Composer/ Command/ BaseDependencyCommand.php - Recursively prints a tree of the selected results.
File
-
vendor/
composer/ composer/ src/ Composer/ Command/ BaseDependencyCommand.php, line 284
Class
- BaseDependencyCommand
- Base implementation for commands mapping dependency relationships.
Namespace
Composer\CommandCode
private function writeTreeLine(string $line) : void {
$io = $this->getIO();
if (!$io->isDecorated()) {
$line = str_replace([
'└',
'├',
'──',
'│',
], [
'`-',
'|-',
'-',
'|',
], $line);
}
$io->write($line);
}