public function advance($step = 1, $redraw = false)
    {
        parent::advance($step, $redraw);

        $this->current += $step;

        $percent = 0;
        if ($this->max > 0) {
            $percent = (float) $this->current / $this->max;
        }
        $this->output->write(sprintf('%d%%', floor($percent * 100)));
    }
public function advance($step = 1, $redraw = false)
    {
        parent::advance($step, $redraw);

        $this->current += $step;

        $percent = 0;
        if ($this->max > 0) {
            $percent = (float) $this->current / $this->max;
        }
        $this->output->write(sprintf('%d%%', floor($percent * 100)));
    }
public function advance ( $ step = 1 , $ redraw = false ) { parent :: advance ( $ step , $ redraw ) ; $ this -> current += $ step ; $ percent = 0 ; if ( $ this -> max > 0 ) { $ percent = ( float ) $ this -> current / $ this -> max ; } $ this -> output -> write ( sprintf ( '%d%%' , floor ( $ percent * 100 ) ) ) ; }
Advances the progress output X steps.

@param int $step Number of steps to advance
@param bool $redraw Whether to redraw or not

@throws \LogicException
Advances the progress output X steps .