Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BaseDependencyCommand.php

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\Command

Code

private function writeTreeLine(string $line) : void {
    $io = $this->getIO();
    if (!$io->isDecorated()) {
        $line = str_replace([
            '└',
            '├',
            '──',
            '│',
        ], [
            '`-',
            '|-',
            '-',
            '|',
        ], $line);
    }
    $io->write($line);
}
RSS feed
Powered by Drupal