original_string: public static function &getPlatform($platform, $instance)
  	{
  		static $instances;
  		if (!isset($instances)) {
  			$instances = array();
  		}
  
  		$platform = ucfirst(strtolower($platform));
  
  		//only create a new thread instance if it has not been created before
  		if (!isset($instances[$platform][$instance])) {
  			$name = static::getNameFromInstance($instance);
  
  			static::pluginAutoLoad($name);
  
  			$class = '\JFusion\Plugins\\' . $name . '\Platform\\' . $platform . '\\Platform';
  			if (!class_exists($class)) {
  				$class = '\JFusion\Plugin\Platform\\' . $platform;
  			}
  			if (!class_exists($class)) {
  				$class = '\JFusion\Plugin\Platform';
  			}
  			$instances[$platform][$instance] = new $class($instance);
  		}
  		return $instances[$platform][$instance];
  	}
code: public static function &getPlatform($platform, $instance)
  	{
  		static $instances;
  		if (!isset($instances)) {
  			$instances = array();
  		}
  
  		$platform = ucfirst(strtolower($platform));
  
  		//only create a new thread instance if it has not been created before
  		if (!isset($instances[$platform][$instance])) {
  			$name = static::getNameFromInstance($instance);
  
  			static::pluginAutoLoad($name);
  
  			$class = '\JFusion\Plugins\\' . $name . '\Platform\\' . $platform . '\\Platform';
  			if (!class_exists($class)) {
  				$class = '\JFusion\Plugin\Platform\\' . $platform;
  			}
  			if (!class_exists($class)) {
  				$class = '\JFusion\Plugin\Platform';
  			}
  			$instances[$platform][$instance] = new $class($instance);
  		}
  		return $instances[$platform][$instance];
  	}
code_tokens: public static function & getPlatform ( $ platform , $ instance ) { static $ instances ; if ( ! isset ( $ instances ) ) { $ instances = array ( ) ; } $ platform = ucfirst ( strtolower ( $ platform ) ) ; //only create a new thread instance if it has not been created before if ( ! isset ( $ instances [ $ platform ] [ $ instance ] ) ) { $ name = static :: getNameFromInstance ( $ instance ) ; static :: pluginAutoLoad ( $ name ) ; $ class = '\JFusion\Plugins\\' . $ name . '\Platform\\' . $ platform . '\\Platform' ; if ( ! class_exists ( $ class ) ) { $ class = '\JFusion\Plugin\Platform\\' . $ platform ; } if ( ! class_exists ( $ class ) ) { $ class = '\JFusion\Plugin\Platform' ; } $ instances [ $ platform ] [ $ instance ] = new $ class ( $ instance ) ; } return $ instances [ $ platform ] [ $ instance ] ; }
docstring: Gets a Forum Class for the JFusion Plugin
  
  @param string $platform
  @param string $instance name of the JFusion plugin used
  
  @return Platform JFusion Thread class for the JFusion plugin
docstring_tokens: Gets a Forum Class for the JFusion Plugin