original_string: public function get_scale() {
          $scaleid = $this->get('scaleid');
          if ($scaleid === null) {
              return $this->get_framework()->get_scale();
          }
          $scale = \grade_scale::fetch(array('id' => $scaleid));
          $scale->load_items();
          return $scale;
      }
code: public function get_scale() {
          $scaleid = $this->get('scaleid');
          if ($scaleid === null) {
              return $this->get_framework()->get_scale();
          }
          $scale = \grade_scale::fetch(array('id' => $scaleid));
          $scale->load_items();
          return $scale;
      }
code_tokens: public function get_scale ( ) { $ scaleid = $ this -> get ( 'scaleid' ) ; if ( $ scaleid === null ) { return $ this -> get_framework ( ) -> get_scale ( ) ; } $ scale = \ grade_scale :: fetch ( array ( 'id' => $ scaleid ) ) ; $ scale -> load_items ( ) ; return $ scale ; }
docstring: Return the scale.
  
  @return \grade_scale
docstring_tokens: Return the scale .