public function advance()
    {
        if (!$this->started) {
            throw new LogicException('Progress indicator has not yet been started.');
        }

        if (!$this->output->isDecorated()) {
            return;
        }

        $currentTime = $this->getCurrentTimeInMilliseconds();

        if ($currentTime < $this->indicatorUpdateTime) {
            return;
        }

        $this->indicatorUpdateTime = $currentTime + $this->indicatorChangeInterval;
        ++$this->indicatorCurrent;

        $this->display();
    }
public function advance()
    {
        if (!$this->started) {
            throw new LogicException('Progress indicator has not yet been started.');
        }

        if (!$this->output->isDecorated()) {
            return;
        }

        $currentTime = $this->getCurrentTimeInMilliseconds();

        if ($currentTime < $this->indicatorUpdateTime) {
            return;
        }

        $this->indicatorUpdateTime = $currentTime + $this->indicatorChangeInterval;
        ++$this->indicatorCurrent;

        $this->display();
    }
public function advance ( ) { if ( ! $ this -> started ) { throw new LogicException ( 'Progress indicator has not yet been started.' ) ; } if ( ! $ this -> output -> isDecorated ( ) ) { return ; } $ currentTime = $ this -> getCurrentTimeInMilliseconds ( ) ; if ( $ currentTime < $ this -> indicatorUpdateTime ) { return ; } $ this -> indicatorUpdateTime = $ currentTime + $ this -> indicatorChangeInterval ; ++ $ this -> indicatorCurrent ; $ this -> display ( ) ; }
Advances the indicator.
Advances the indicator .