original_string: public function isFinished()
      {
          $batch = $this->getBatch();
          if ($this->_finished) {
              $batch->resetCounter('movestarted');
              $moved    = $batch->getCounter('moved');
              $notFound = $batch->getCounter('notfound');
              
              $this->getBatch()->addMessage(
                      sprintf($this->_('%d \'%s\' survey answers have been copied to \'%s\'.'),
                              $moved,
                              $this->sourceSurveyName,
                              $this->targetSurveyName));
              if ($notFound > 0) {
                  $this->getBatch()->addMessage(sprintf($this->_('For %d tokens no answers were found.'), $notFound));
              }
          } else {
              if ($this->getBatch()->getCounter('movesteps') === 0) {
                  // Add 1 to the counter to keep going
                  $this->getBatch()->addStepCount(1);
              }
          }
          return $this->_finished;
      }
code: public function isFinished()
      {
          $batch = $this->getBatch();
          if ($this->_finished) {
              $batch->resetCounter('movestarted');
              $moved    = $batch->getCounter('moved');
              $notFound = $batch->getCounter('notfound');
              
              $this->getBatch()->addMessage(
                      sprintf($this->_('%d \'%s\' survey answers have been copied to \'%s\'.'),
                              $moved,
                              $this->sourceSurveyName,
                              $this->targetSurveyName));
              if ($notFound > 0) {
                  $this->getBatch()->addMessage(sprintf($this->_('For %d tokens no answers were found.'), $notFound));
              }
          } else {
              if ($this->getBatch()->getCounter('movesteps') === 0) {
                  // Add 1 to the counter to keep going
                  $this->getBatch()->addStepCount(1);
              }
          }
          return $this->_finished;
      }
code_tokens: public function isFinished ( ) { $ batch = $ this -> getBatch ( ) ; if ( $ this -> _finished ) { $ batch -> resetCounter ( 'movestarted' ) ; $ moved = $ batch -> getCounter ( 'moved' ) ; $ notFound = $ batch -> getCounter ( 'notfound' ) ; $ this -> getBatch ( ) -> addMessage ( sprintf ( $ this -> _ ( '%d \'%s\' survey answers have been copied to \'%s\'.' ) , $ moved , $ this -> sourceSurveyName , $ this -> targetSurveyName ) ) ; if ( $ notFound > 0 ) { $ this -> getBatch ( ) -> addMessage ( sprintf ( $ this -> _ ( 'For %d tokens no answers were found.' ) , $ notFound ) ) ; } } else { if ( $ this -> getBatch ( ) -> getCounter ( 'movesteps' ) === 0 ) { // Add 1 to the counter to keep going $ this -> getBatch ( ) -> addStepCount ( 1 ) ; } } return $ this -> _finished ; }
docstring: Return true when the task has finished.
  
  @return boolean
docstring_tokens: Return true when the task has finished .