You are here

private function SymfonyStyle::getTerminalWidth in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Style/SymfonyStyle.php \Symfony\Component\Console\Style\SymfonyStyle::getTerminalWidth()
1 call to SymfonyStyle::getTerminalWidth()
SymfonyStyle::__construct in vendor/symfony/console/Style/SymfonyStyle.php

File

vendor/symfony/console/Style/SymfonyStyle.php, line 370

Class

SymfonyStyle
Output decorator helpers for the Symfony Style Guide.

Namespace

Symfony\Component\Console\Style

Code

private function getTerminalWidth() {
  $application = new Application();
  $dimensions = $application
    ->getTerminalDimensions();
  return $dimensions[0] ?: self::MAX_LINE_LENGTH;
}