original_string: private static function __getCloudFrontResponse(&$rest)
  	{
  		$rest->getResponse();
  		if ($rest->response->error === false && isset($rest->response->body) &&
  		is_string($rest->response->body) && substr($rest->response->body, 0, 5) == '<?xml')
  		{
  			$rest->response->body = simplexml_load_string($rest->response->body);
  			// Grab CloudFront errors
  			if (isset($rest->response->body->Error, $rest->response->body->Error->Code,
  			$rest->response->body->Error->Message))
  			{
  				$rest->response->error = array(
  					'code' => (string)$rest->response->body->Error->Code,
  					'message' => (string)$rest->response->body->Error->Message
  				);
  				unset($rest->response->body);
  			}
  		}
  		return $rest->response;
  	}
code: private static function __getCloudFrontResponse(&$rest)
  	{
  		$rest->getResponse();
  		if ($rest->response->error === false && isset($rest->response->body) &&
  		is_string($rest->response->body) && substr($rest->response->body, 0, 5) == '<?xml')
  		{
  			$rest->response->body = simplexml_load_string($rest->response->body);
  			// Grab CloudFront errors
  			if (isset($rest->response->body->Error, $rest->response->body->Error->Code,
  			$rest->response->body->Error->Message))
  			{
  				$rest->response->error = array(
  					'code' => (string)$rest->response->body->Error->Code,
  					'message' => (string)$rest->response->body->Error->Message
  				);
  				unset($rest->response->body);
  			}
  		}
  		return $rest->response;
  	}
code_tokens: private static function __getCloudFrontResponse ( & $ rest ) { $ rest -> getResponse ( ) ; if ( $ rest -> response -> error === false && isset ( $ rest -> response -> body ) && is_string ( $ rest -> response -> body ) && substr ( $ rest -> response -> body , 0 , 5 ) == '<?xml' ) { $ rest -> response -> body = simplexml_load_string ( $ rest -> response -> body ) ; // Grab CloudFront errors if ( isset ( $ rest -> response -> body -> Error , $ rest -> response -> body -> Error -> Code , $ rest -> response -> body -> Error -> Message ) ) { $ rest -> response -> error = array ( 'code' => ( string ) $ rest -> response -> body -> Error -> Code , 'message' => ( string ) $ rest -> response -> body -> Error -> Message ) ; unset ( $ rest -> response -> body ) ; } } return $ rest -> response ; }
docstring: Grab CloudFront response
  
  @internal Used to parse the CloudFront S3Request::getResponse() output
  @param object &$rest S3Request instance
  @return object
docstring_tokens: Grab CloudFront response