original_string: public static function getInstance($id)
  	{
  		if (empty(self::$instances[$id]))
  		{
  			self::$instances[$id] = new self;
  		}
  
  		return self::$instances[$id];
  	}
code: public static function getInstance($id)
  	{
  		if (empty(self::$instances[$id]))
  		{
  			self::$instances[$id] = new self;
  		}
  
  		return self::$instances[$id];
  	}
code_tokens: public static function getInstance ( $ id ) { if ( empty ( self :: $ instances [ $ id ] ) ) { self :: $ instances [ $ id ] = new self ; } return self :: $ instances [ $ id ] ; }
docstring: Returns a reference to a global Registry object, only creating it
  if it doesn't already exist.
  
  This method must be invoked as:
  <pre>$registry = Registry::getInstance($id);</pre>
  
  @param   string  $id  An ID for the registry instance
  
  @return  Registry  The Registry object.
  
  @since   1.0
  @deprecated  2.0  Instantiate a new Registry instance instead
docstring_tokens: Returns a reference to a global Registry object only creating it if it doesn t already exist .