original_string: protected function helper_grading_report_grade($grade, $over=null) {
          $a = new stdclass();
          $a->grade = is_null($grade) ? get_string('nullgrade', 'workshop') : $grade;
          if (is_null($over)) {
              $text = get_string('formataggregatedgrade', 'workshop', $a);
          } else {
              $a->over = is_null($over) ? get_string('nullgrade', 'workshop') : $over;
              $text = get_string('formataggregatedgradeover', 'workshop', $a);
          }
          return $text;
      }
code: protected function helper_grading_report_grade($grade, $over=null) {
          $a = new stdclass();
          $a->grade = is_null($grade) ? get_string('nullgrade', 'workshop') : $grade;
          if (is_null($over)) {
              $text = get_string('formataggregatedgrade', 'workshop', $a);
          } else {
              $a->over = is_null($over) ? get_string('nullgrade', 'workshop') : $over;
              $text = get_string('formataggregatedgradeover', 'workshop', $a);
          }
          return $text;
      }
code_tokens: protected function helper_grading_report_grade ( $ grade , $ over = null ) { $ a = new stdclass ( ) ; $ a -> grade = is_null ( $ grade ) ? get_string ( 'nullgrade' , 'workshop' ) : $ grade ; if ( is_null ( $ over ) ) { $ text = get_string ( 'formataggregatedgrade' , 'workshop' , $ a ) ; } else { $ a -> over = is_null ( $ over ) ? get_string ( 'nullgrade' , 'workshop' ) : $ over ; $ text = get_string ( 'formataggregatedgradeover' , 'workshop' , $ a ) ; } return $ text ; }
docstring: Formats the aggreagated grades
docstring_tokens: Formats the aggreagated grades