original_string: public static function report_performance_check_debugmsg() {
          global $CFG;
          $issueresult = new report_performance_issue();
          $issueresult->issue = 'report_performance_check_debugmsg';
          $issueresult->name = get_string('debug', 'admin');
          $debugchoices = array(DEBUG_NONE  => 'debugnone',
                              DEBUG_MINIMAL => 'debugminimal',
                              DEBUG_NORMAL => 'debugnormal',
                              DEBUG_ALL => 'debugall',
                              DEBUG_DEVELOPER => 'debugdeveloper');
  
          $issueresult->statusstr = get_string($debugchoices[$CFG->debug], 'admin');
          if (!$CFG->debugdeveloper) {
              $issueresult->status = self::REPORT_PERFORMANCE_OK;
              $issueresult->comment = get_string('check_debugmsg_comment_nodeveloper', 'report_performance');
          } else {
              $issueresult->status = self::REPORT_PERFORMANCE_WARNING;
              $issueresult->comment = get_string('check_debugmsg_comment_developer', 'report_performance');
          }
  
          $issueresult->details = get_string('check_debugmsg_details', 'report_performance');
  
          $issueresult->configlink = new moodle_url('/admin/settings.php', array('section' => 'debugging'));
          return $issueresult;
      }
code: public static function report_performance_check_debugmsg() {
          global $CFG;
          $issueresult = new report_performance_issue();
          $issueresult->issue = 'report_performance_check_debugmsg';
          $issueresult->name = get_string('debug', 'admin');
          $debugchoices = array(DEBUG_NONE  => 'debugnone',
                              DEBUG_MINIMAL => 'debugminimal',
                              DEBUG_NORMAL => 'debugnormal',
                              DEBUG_ALL => 'debugall',
                              DEBUG_DEVELOPER => 'debugdeveloper');
  
          $issueresult->statusstr = get_string($debugchoices[$CFG->debug], 'admin');
          if (!$CFG->debugdeveloper) {
              $issueresult->status = self::REPORT_PERFORMANCE_OK;
              $issueresult->comment = get_string('check_debugmsg_comment_nodeveloper', 'report_performance');
          } else {
              $issueresult->status = self::REPORT_PERFORMANCE_WARNING;
              $issueresult->comment = get_string('check_debugmsg_comment_developer', 'report_performance');
          }
  
          $issueresult->details = get_string('check_debugmsg_details', 'report_performance');
  
          $issueresult->configlink = new moodle_url('/admin/settings.php', array('section' => 'debugging'));
          return $issueresult;
      }
code_tokens: public static function report_performance_check_debugmsg ( ) { global $ CFG ; $ issueresult = new report_performance_issue ( ) ; $ issueresult -> issue = 'report_performance_check_debugmsg' ; $ issueresult -> name = get_string ( 'debug' , 'admin' ) ; $ debugchoices = array ( DEBUG_NONE => 'debugnone' , DEBUG_MINIMAL => 'debugminimal' , DEBUG_NORMAL => 'debugnormal' , DEBUG_ALL => 'debugall' , DEBUG_DEVELOPER => 'debugdeveloper' ) ; $ issueresult -> statusstr = get_string ( $ debugchoices [ $ CFG -> debug ] , 'admin' ) ; if ( ! $ CFG -> debugdeveloper ) { $ issueresult -> status = self :: REPORT_PERFORMANCE_OK ; $ issueresult -> comment = get_string ( 'check_debugmsg_comment_nodeveloper' , 'report_performance' ) ; } else { $ issueresult -> status = self :: REPORT_PERFORMANCE_WARNING ; $ issueresult -> comment = get_string ( 'check_debugmsg_comment_developer' , 'report_performance' ) ; } $ issueresult -> details = get_string ( 'check_debugmsg_details' , 'report_performance' ) ; $ issueresult -> configlink = new moodle_url ( '/admin/settings.php' , array ( 'section' => 'debugging' ) ) ; return $ issueresult ; }
docstring: Checks debug config.
  
  @return report_performance_issue result of debugmsg issue.
docstring_tokens: Checks debug config .