Commit b270e9e7 authored by Bas de Nooijer's avatar Bas de Nooijer

- code style and documentation fixes

parent 8dabbb82
...@@ -159,7 +159,7 @@ class Solarium_Client_Adapter_Http extends Solarium_Client_Adapter ...@@ -159,7 +159,7 @@ class Solarium_Client_Adapter_Http extends Solarium_Client_Adapter
{ {
// get the status header // get the status header
$statusHeader = null; $statusHeader = null;
foreach( $headers AS $header) { foreach ($headers AS $header) {
if (substr($header, 0, 4) == 'HTTP') { if (substr($header, 0, 4) == 'HTTP') {
$statusHeader = $header; $statusHeader = $header;
break; break;
......
...@@ -42,10 +42,13 @@ ...@@ -42,10 +42,13 @@
* HTTP errors usually mean your Solr settings or Solr input (e.g. query) * HTTP errors usually mean your Solr settings or Solr input (e.g. query)
* contain an error. * contain an error.
* *
* The getCode method will return the HTTP response code returned by the server. * The getMessage method returns an error description that includes the status
* message and code.
* *
* The getMessage method will return the corresponding message, as returned by * The getCode method will return the HTTP response code returned by the server
* the server. * (if available).
*
* The getStatusMessage method will return the HTTP status message.
* *
* @package Solarium * @package Solarium
* @subpackage Client * @subpackage Client
......
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