@@ -189,9 +189,9 @@ discard block |
||
| 189 | 189 | */ |
| 190 | 190 | const X_FORWARDED_FOR_HF = "X-Forwarded-For"; |
| 191 | 191 | |
| 192 | - const DESTINATION_HF = "Destination"; //!< This header field is not supported by HTTP 1.1. It's a special header field used by CouchDB. |
|
| 193 | - const X_COUCHDB_WWW_AUTHENTICATE_HF = "X-CouchDB-WWW-Authenticate"; //!< This header field is not supported by HTTP 1.1. It's a special method header field by CouchDB. |
|
| 194 | - const X_COUCHDB_FULL_COMMIT_HF = "X-Couch-Full-Commit"; //!< This header field is not supported by HTTP 1.1. It's a special header field used by CouchDB. |
|
| 192 | + const DESTINATION_HF = "Destination"; //!< This header field is not supported by HTTP 1.1. It's a special header field used by CouchDB. |
|
| 193 | + const X_COUCHDB_WWW_AUTHENTICATE_HF = "X-CouchDB-WWW-Authenticate"; //!< This header field is not supported by HTTP 1.1. It's a special method header field by CouchDB. |
|
| 194 | + const X_COUCHDB_FULL_COMMIT_HF = "X-Couch-Full-Commit"; //!< This header field is not supported by HTTP 1.1. It's a special header field used by CouchDB. |
|
| 195 | 195 | |
| 196 | 196 | //!@} |
| 197 | 197 | |
@@ -408,7 +408,7 @@ discard block |
||
| 408 | 408 | $params = explode('&', $query); |
| 409 | 409 | |
| 410 | 410 | foreach ($params as $param) { |
| 411 | - @list($name, $value) = explode('=', $param, 2); |
|
| 411 | + @list($name, $value) = explode('=', $param, 2); |
|
| 412 | 412 | $this->setQueryParam($name, $value); |
| 413 | 413 | } |
| 414 | 414 | } |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | if (preg_match(self::SCHEME_HOST_PORT_URI, $server, $matches)) { |
| 77 | 77 | $this->scheme = isset($matches['scheme']) ? $matches['scheme'] : "tcp://"; |
| 78 | 78 | $this->host = isset($matches['host']) ? $matches['host'] : self::DEFAULT_HOST; |
| 79 | - $this->port = isset($matches['port']) ? (int) substr($matches['port'], 1) : self::$defaultPorts[$this->scheme]; |
|
| 79 | + $this->port = isset($matches['port']) ? (int)substr($matches['port'], 1) : self::$defaultPorts[$this->scheme]; |
|
| 80 | 80 | } |
| 81 | 81 | else // Match attempt failed. |
| 82 | 82 | throw new \InvalidArgumentException(sprintf("'%s' is not a valid URI.", $server)); |