original_string: protected static function output_msg($msg) {
          global $CFG, $PAGE;
  
          // If we are using the web interface we want pretty messages.
          if (!CLI_SCRIPT) {
  
              $renderer = $PAGE->get_renderer('tool_behat');
              echo $renderer->render_error($msg);
  
              // Stopping execution.
              exit(1);
  
          } else {
  
              // We continue execution after this.
              $clibehaterrorstr = "Ensure you set \$CFG->behat_* vars in config.php " .
                  "and you ran admin/tool/behat/cli/init.php.\n" .
                  "More info in " . self::DOCS_URL;
  
              echo 'Error: ' . $msg . "\n\n" . $clibehaterrorstr;
          }
      }
code: protected static function output_msg($msg) {
          global $CFG, $PAGE;
  
          // If we are using the web interface we want pretty messages.
          if (!CLI_SCRIPT) {
  
              $renderer = $PAGE->get_renderer('tool_behat');
              echo $renderer->render_error($msg);
  
              // Stopping execution.
              exit(1);
  
          } else {
  
              // We continue execution after this.
              $clibehaterrorstr = "Ensure you set \$CFG->behat_* vars in config.php " .
                  "and you ran admin/tool/behat/cli/init.php.\n" .
                  "More info in " . self::DOCS_URL;
  
              echo 'Error: ' . $msg . "\n\n" . $clibehaterrorstr;
          }
      }
code_tokens: protected static function output_msg ( $ msg ) { global $ CFG , $ PAGE ; // If we are using the web interface we want pretty messages. if ( ! CLI_SCRIPT ) { $ renderer = $ PAGE -> get_renderer ( 'tool_behat' ) ; echo $ renderer -> render_error ( $ msg ) ; // Stopping execution. exit ( 1 ) ; } else { // We continue execution after this. $ clibehaterrorstr = "Ensure you set \$CFG->behat_* vars in config.php " . "and you ran admin/tool/behat/cli/init.php.\n" . "More info in " . self :: DOCS_URL ; echo 'Error: ' . $ msg . "\n\n" . $ clibehaterrorstr ; } }
docstring: Outputs a message.
  
  Used in CLI + web UI methods. Stops the
  execution in web.
  
  @param string $msg
  @return void
docstring_tokens: Outputs a message .