original_string: protected static function transform_competency_grade(competency $competency, $grade, performance_helper $helper) {
          if ($grade === null) {
              return '-';
          }
          $scale = $helper->get_scale_from_competency($competency);
          return $scale->scale_items[$grade - 1];
      }
code: protected static function transform_competency_grade(competency $competency, $grade, performance_helper $helper) {
          if ($grade === null) {
              return '-';
          }
          $scale = $helper->get_scale_from_competency($competency);
          return $scale->scale_items[$grade - 1];
      }
code_tokens: protected static function transform_competency_grade ( competency $ competency , $ grade , performance_helper $ helper ) { if ( $ grade === null ) { return '-' ; } $ scale = $ helper -> get_scale_from_competency ( $ competency ) ; return $ scale -> scale_items [ $ grade - 1 ] ; }
docstring: Transform a competency rating.
  
  @param competency $competency The competency.
  @param int $grade The grade.
  @param performance_helper $helper The performance helper.
  @return string
docstring_tokens: Transform a competency rating .