original_string: public function get_active_controller() {
          if ($gradingmethod = $this->get_active_method()) {
              $controller = $this->get_controller($gradingmethod);
              if ($controller->is_form_available()) {
                  return $controller;
              }
          }
          return null;
      }
code: public function get_active_controller() {
          if ($gradingmethod = $this->get_active_method()) {
              $controller = $this->get_controller($gradingmethod);
              if ($controller->is_form_available()) {
                  return $controller;
              }
          }
          return null;
      }
code_tokens: public function get_active_controller ( ) { if ( $ gradingmethod = $ this -> get_active_method ( ) ) { $ controller = $ this -> get_controller ( $ gradingmethod ) ; if ( $ controller -> is_form_available ( ) ) { return $ controller ; } } return null ; }
docstring: Returns the controller for the active method if it is available
  
  @return null|gradingform_controller
docstring_tokens: Returns the controller for the active method if it is available