original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Advances the indicator.
docstring_tokens: Advances the indicator .