original_string: public static function getTypeInstance($type)
  	{
  		$type = ucfirst(strtolower($type));
  		if (!isset(self::$instances[$type])) {
  			$class = 'JFusion\\Api\\Platform\\' . $type;
  			self::$instances[$type] = new $class();
  		}
  		return self::$instances[$type];
  	}
code: public static function getTypeInstance($type)
  	{
  		$type = ucfirst(strtolower($type));
  		if (!isset(self::$instances[$type])) {
  			$class = 'JFusion\\Api\\Platform\\' . $type;
  			self::$instances[$type] = new $class();
  		}
  		return self::$instances[$type];
  	}
code_tokens: public static function getTypeInstance ( $ type ) { $ type = ucfirst ( strtolower ( $ type ) ) ; if ( ! isset ( self :: $ instances [ $ type ] ) ) { $ class = 'JFusion\\Api\\Platform\\' . $ type ; self :: $ instances [ $ type ] = new $ class ( ) ; } return self :: $ instances [ $ type ] ; }
docstring: Get a platform type object.
  
  @param string $type
  
  @return Platform
docstring_tokens: Get a platform type object .