Commit 12087fb1 authored by Gasol Wu's avatar Gasol Wu

pass checkstyle, line exceeds 80 chars

parent 823f2b91
......@@ -71,7 +71,8 @@ class Solarium_Client_Adapter_PeclHttp extends Solarium_Client_Adapter
if (!isset($options['headers']['Content-Type'])) {
$options['headers']['Content-Type'] = 'text/xml; charset=utf-8';
}
$httpResponse = http_post_data($uri, $request->getRawData(), $options);
$httpResponse = http_post_data($uri, $request->getRawData(),
$options);
} else if ($method == Solarium_Client_Request::METHOD_GET) {
$httpResponse = http_get($uri, $options);
} else if ($method == Solarium_Client_Request::METHOD_HEAD) {
......@@ -85,7 +86,8 @@ class Solarium_Client_Adapter_PeclHttp extends Solarium_Client_Adapter
if ($message = http_parse_message($httpResponse)) {
$data = $message->body;
if ($firstPositionOfCRLF = strpos($httpResponse, "\r\n\r\n")) {
$headersAsString = substr($httpResponse, 0, $firstPositionOfCRLF);
$headersAsString = substr($httpResponse, 0,
$firstPositionOfCRLF);
$headers = explode("\n", $headersAsString);
}
}
......
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