You are here

private function ProgressBar::determineBestFormat in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Helper/ProgressBar.php \Symfony\Component\Console\Helper\ProgressBar::determineBestFormat()
2 calls to ProgressBar::determineBestFormat()
ProgressBar::clear in vendor/symfony/console/Helper/ProgressBar.php
Removes the progress bar from the current line.
ProgressBar::display in vendor/symfony/console/Helper/ProgressBar.php
Outputs the current progress string.

File

vendor/symfony/console/Helper/ProgressBar.php, line 550

Class

ProgressBar
The ProgressBar provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

private function determineBestFormat() {
  switch ($this->output
    ->getVerbosity()) {

    // OutputInterface::VERBOSITY_QUIET: display is disabled anyway
    case OutputInterface::VERBOSITY_VERBOSE:
      return $this->max ? 'verbose' : 'verbose_nomax';
    case OutputInterface::VERBOSITY_VERY_VERBOSE:
      return $this->max ? 'very_verbose' : 'very_verbose_nomax';
    case OutputInterface::VERBOSITY_DEBUG:
      return $this->max ? 'debug' : 'debug_nomax';
    default:
      return $this->max ? 'normal' : 'normal_nomax';
  }
}