original_string: protected static function make_plugin_instance($type, $typerootdir, $name, $namerootdir, $typeclass, $pluginman) {
          $plugin              = new $typeclass();
          $plugin->type        = $type;
          $plugin->typerootdir = $typerootdir;
          $plugin->name        = $name;
          $plugin->rootdir     = $namerootdir;
          $plugin->pluginman   = $pluginman;
  
          $plugin->init_display_name();
          $plugin->load_disk_version();
          $plugin->load_db_version();
          $plugin->init_is_standard();
  
          return $plugin;
      }
code: protected static function make_plugin_instance($type, $typerootdir, $name, $namerootdir, $typeclass, $pluginman) {
          $plugin              = new $typeclass();
          $plugin->type        = $type;
          $plugin->typerootdir = $typerootdir;
          $plugin->name        = $name;
          $plugin->rootdir     = $namerootdir;
          $plugin->pluginman   = $pluginman;
  
          $plugin->init_display_name();
          $plugin->load_disk_version();
          $plugin->load_db_version();
          $plugin->init_is_standard();
  
          return $plugin;
      }
code_tokens: protected static function make_plugin_instance ( $ type , $ typerootdir , $ name , $ namerootdir , $ typeclass , $ pluginman ) { $ plugin = new $ typeclass ( ) ; $ plugin -> type = $ type ; $ plugin -> typerootdir = $ typerootdir ; $ plugin -> name = $ name ; $ plugin -> rootdir = $ namerootdir ; $ plugin -> pluginman = $ pluginman ; $ plugin -> init_display_name ( ) ; $ plugin -> load_disk_version ( ) ; $ plugin -> load_db_version ( ) ; $ plugin -> init_is_standard ( ) ; return $ plugin ; }
docstring: Makes a new instance of the plugininfo class
  
  @param string $type the plugin type, eg. 'mod'
  @param string $typerootdir full path to the location of all the plugins of this type
  @param string $name the plugin name, eg. 'workshop'
  @param string $namerootdir full path to the location of the plugin
  @param string $typeclass the name of class that holds the info about the plugin
  @param core_plugin_manager $pluginman the plugin manager of the new instance
  @return base the instance of $typeclass
docstring_tokens: Makes a new instance of the plugininfo class