original_string: public function display_guide_mapping_explained($scores) {
          $html = '';
          if (!$scores) {
              return $html;
          }
          if (isset($scores['modulegrade']) && $scores['maxscore'] != $scores['modulegrade']) {
              $html .= $this->box(html_writer::tag('div', get_string('guidemappingexplained', 'gradingform_guide', (object)$scores))
                  , 'generalbox gradingform_guide-error');
          }
  
          return $html;
      }
code: public function display_guide_mapping_explained($scores) {
          $html = '';
          if (!$scores) {
              return $html;
          }
          if (isset($scores['modulegrade']) && $scores['maxscore'] != $scores['modulegrade']) {
              $html .= $this->box(html_writer::tag('div', get_string('guidemappingexplained', 'gradingform_guide', (object)$scores))
                  , 'generalbox gradingform_guide-error');
          }
  
          return $html;
      }
code_tokens: public function display_guide_mapping_explained ( $ scores ) { $ html = '' ; if ( ! $ scores ) { return $ html ; } if ( isset ( $ scores [ 'modulegrade' ] ) && $ scores [ 'maxscore' ] != $ scores [ 'modulegrade' ] ) { $ html .= $ this -> box ( html_writer :: tag ( 'div' , get_string ( 'guidemappingexplained' , 'gradingform_guide' , ( object ) $ scores ) ) , 'generalbox gradingform_guide-error' ) ; } return $ html ; }
docstring: Generates and returns HTML code to display information box about how guide score is converted to the grade
  
  @param array $scores
  @return string
docstring_tokens: Generates and returns HTML code to display information box about how guide score is converted to the grade