Commit a918b066 authored by Gasol Wu's avatar Gasol Wu

indent

parent 0b2b8351
...@@ -83,8 +83,10 @@ class Solarium_Client_Adapter_PeclHttp extends Solarium_Client_Adapter ...@@ -83,8 +83,10 @@ class Solarium_Client_Adapter_PeclHttp extends Solarium_Client_Adapter
throw new Solarium_Client_HttpException($error); throw new Solarium_Client_HttpException($error);
} }
return new Solarium_Client_Response($httpMessage->getBody(), return new Solarium_Client_Response(
$this->_getRawHeaders($httpMessage)); $httpMessage->getBody(),
$this->_getRawHeaders($httpMessage)
);
} }
/** /**
...@@ -141,8 +143,9 @@ class Solarium_Client_Adapter_PeclHttp extends Solarium_Client_Adapter ...@@ -141,8 +143,9 @@ class Solarium_Client_Adapter_PeclHttp extends Solarium_Client_Adapter
$method = HTTP_METH_HEAD; $method = HTTP_METH_HEAD;
break; break;
default: default:
throw new Solarium_Exception('Unsupported method: ' . throw new Solarium_Exception(
$request->getMethod()); 'Unsupported method: ' . $request->getMethod()
);
} }
$options = $this->_createOptions($request); $options = $this->_createOptions($request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment