You are here

public function ProgressBar::finish 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::finish()

Finishes the progress output.

File

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

Class

ProgressBar
The ProgressBar provides helpers to display progress output.

Namespace

Symfony\Component\Console\Helper

Code

public function finish() {
  if (!$this->max) {
    $this->max = $this->step;
  }
  if ($this->step === $this->max && !$this->overwrite) {

    // prevent double 100% output
    return;
  }
  $this
    ->setProgress($this->max);
}