original_string: public function has_type_handler($module, $type) {
          if (!$this->is_known_type($type)) {
              throw new coding_exception("Checking for handler for unknown type $type");
          }
          foreach ($this->types[$type]->handlers as $handler) {
              if ($handler->module == $module) {
                  return true;
              }
          }
          return false;
      }
code: public function has_type_handler($module, $type) {
          if (!$this->is_known_type($type)) {
              throw new coding_exception("Checking for handler for unknown type $type");
          }
          foreach ($this->types[$type]->handlers as $handler) {
              if ($handler->module == $module) {
                  return true;
              }
          }
          return false;
      }
code_tokens: public function has_type_handler ( $ module , $ type ) { if ( ! $ this -> is_known_type ( $ type ) ) { throw new coding_exception ( "Checking for handler for unknown type $type" ) ; } foreach ( $ this -> types [ $ type ] -> handlers as $ handler ) { if ( $ handler -> module == $ module ) { return true ; } } return false ; }
docstring: Check to see if the module in question has registered to handle the
  type given
  
  @param string $module The name of the module
  @param string $type The identifier of the type
  @return bool True if the module has registered to handle that type
docstring_tokens: Check to see if the module in question has registered to handle the type given