src/TerminalObject/Dynamic/Progress.php
protected function drawProgressBar($current, $label)
    {
        $percentage = $this->percentageFormatted($current / $this->total);

        if ($this->shouldRedraw($percentage, $label)) {
            $progress_bar = $this->getProgressBar($current, $label);
            $this->output->write($this->parser->apply($progress_bar));
        }

        $this->current_percentage = $percentage;
    }
protected function drawProgressBar($current, $label)
    {
        $percentage = $this->percentageFormatted($current / $this->total);

        if ($this->shouldRedraw($percentage, $label)) {
            $progress_bar = $this->getProgressBar($current, $label);
            $this->output->write($this->parser->apply($progress_bar));
        }

        $this->current_percentage = $percentage;
    }
protected function drawProgressBar ( $ current , $ label ) { $ percentage = $ this -> percentageFormatted ( $ current / $ this -> total ) ; if ( $ this -> shouldRedraw ( $ percentage , $ label ) ) { $ progress_bar = $ this -> getProgressBar ( $ current , $ label ) ; $ this -> output -> write ( $ this -> parser -> apply ( $ progress_bar ) ) ; } $ this -> current_percentage = $ percentage ; }
Draw the progress bar, if necessary

@param string $current
@param string $label
Draw the progress bar if necessary