original_string: public function execute() {
          global $CFG;
  
          if (!empty($CFG->skiplangupgrade)) {
              mtrace('Langpack update skipped. ($CFG->skiplangupgrade set)');
  
              return;
          }
  
          $controller = new \tool_langimport\controller();
          if ($controller->update_all_installed_languages()) {
              foreach ($controller->info as $message) {
                  mtrace($message);
              }
              return true;
          } else {
              foreach ($controller->errors as $message) {
                  mtrace($message);
              }
              return false;
          }
  
      }
code: public function execute() {
          global $CFG;
  
          if (!empty($CFG->skiplangupgrade)) {
              mtrace('Langpack update skipped. ($CFG->skiplangupgrade set)');
  
              return;
          }
  
          $controller = new \tool_langimport\controller();
          if ($controller->update_all_installed_languages()) {
              foreach ($controller->info as $message) {
                  mtrace($message);
              }
              return true;
          } else {
              foreach ($controller->errors as $message) {
                  mtrace($message);
              }
              return false;
          }
  
      }
code_tokens: public function execute ( ) { global $ CFG ; if ( ! empty ( $ CFG -> skiplangupgrade ) ) { mtrace ( 'Langpack update skipped. ($CFG->skiplangupgrade set)' ) ; return ; } $ controller = new \ tool_langimport \ controller ( ) ; if ( $ controller -> update_all_installed_languages ( ) ) { foreach ( $ controller -> info as $ message ) { mtrace ( $ message ) ; } return true ; } else { foreach ( $ controller -> errors as $ message ) { mtrace ( $ message ) ; } return false ; } }
docstring: Run langpack update
docstring_tokens: Run langpack update