original_string: protected function executeAction($from = null, $to = null)
      {
          $context = $this->getRequest()->getParam('id', 'gems');
          $from    = $this->getRequest()->getParam('from', $from);
          $to      = $this->getRequest()->getParam('to', $to);
  
          $batch = $this->loader->getTaskRunnerBatch('upgrade' . $context);
          $batch->minimalStepDurationMs = 3000; // 3 seconds max before sending feedback
  
          if (!$batch->isLoaded()) {
              $this->_upgrades->setBatch($batch);
              $this->_upgrades->execute($context, $to, $from);
          }
  
          $title = sprintf($this->_('Upgrading %s'), $context);
          $this->_helper->BatchRunner($batch, $title, $this->accesslog);
  
          $this->html->br();
          $this->compatibilityReportAction();
      }
code: protected function executeAction($from = null, $to = null)
      {
          $context = $this->getRequest()->getParam('id', 'gems');
          $from    = $this->getRequest()->getParam('from', $from);
          $to      = $this->getRequest()->getParam('to', $to);
  
          $batch = $this->loader->getTaskRunnerBatch('upgrade' . $context);
          $batch->minimalStepDurationMs = 3000; // 3 seconds max before sending feedback
  
          if (!$batch->isLoaded()) {
              $this->_upgrades->setBatch($batch);
              $this->_upgrades->execute($context, $to, $from);
          }
  
          $title = sprintf($this->_('Upgrading %s'), $context);
          $this->_helper->BatchRunner($batch, $title, $this->accesslog);
  
          $this->html->br();
          $this->compatibilityReportAction();
      }
code_tokens: protected function executeAction ( $ from = null , $ to = null ) { $ context = $ this -> getRequest ( ) -> getParam ( 'id' , 'gems' ) ; $ from = $ this -> getRequest ( ) -> getParam ( 'from' , $ from ) ; $ to = $ this -> getRequest ( ) -> getParam ( 'to' , $ to ) ; $ batch = $ this -> loader -> getTaskRunnerBatch ( 'upgrade' . $ context ) ; $ batch -> minimalStepDurationMs = 3000 ; // 3 seconds max before sending feedback if ( ! $ batch -> isLoaded ( ) ) { $ this -> _upgrades -> setBatch ( $ batch ) ; $ this -> _upgrades -> execute ( $ context , $ to , $ from ) ; } $ title = sprintf ( $ this -> _ ( 'Upgrading %s' ) , $ context ) ; $ this -> _helper -> BatchRunner ( $ batch , $ title , $ this -> accesslog ) ; $ this -> html -> br ( ) ; $ this -> compatibilityReportAction ( ) ; }
docstring: Executes the upgrades for a certain context
  
  optional: give from and to levels
  
  usage: execute/context/<context>{/from/int/to/int}
docstring_tokens: Executes the upgrades for a certain context