Browse Source

Docblock tweaks

Just a few minor tweaks
David Yell 8 years ago
parent
commit
199cfa20bc
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/Http/Client.php

+ 7 - 7
src/Http/Client.php

@@ -28,7 +28,7 @@ use Zend\Diactoros\Uri;
  *
  * ### Scoped clients
  *
- * If you're doing multiple requests to the same hostname its often convenient
+ * If you're doing multiple requests to the same hostname it's often convenient
  * to use the constructor arguments to create a scoped client. This allows you
  * to keep your code DRY and not repeat hostnames, authentication, and other options.
  *
@@ -87,7 +87,7 @@ use Zend\Diactoros\Uri;
  * ### Using proxies
  *
  * By using the `proxy` key you can set authentication credentials for
- * a proxy if you need to use one.. The type sub option can be used to
+ * a proxy if you need to use one. The type sub option can be used to
  * specify which authentication strategy you want to use.
  * CakePHP comes with built-in support for basic authentication.
  *
@@ -149,7 +149,7 @@ class Client
      *   Defaults to true.
      * - ssl_verify_peer_name - Whether or not peer names should be validated.
      *   Defaults to true.
-     * - ssl_verify_depth - The maximum certificate chain depth to travers.
+     * - ssl_verify_depth - The maximum certificate chain depth to traverse.
      *   Defaults to 5.
      * - ssl_verify_host - Verify that the certificate and hostname match.
      *   Defaults to true.
@@ -207,7 +207,7 @@ class Client
      *
      * The $data argument supports a special `_content` key
      * for providing a request body in a GET request. This is
-     * generally not used but services like ElasticSearch use
+     * generally not used, but services like ElasticSearch use
      * this feature.
      *
      * @param string $url The url or path you want to request.
@@ -351,7 +351,7 @@ class Client
      * @param string $method HTTP method.
      * @param string $url URL to request.
      * @param mixed $data The request body.
-     * @param array $options The options to use. Contains auth, proxy etc.
+     * @param array $options The options to use. Contains auth, proxy, etc.
      * @return \Cake\Http\Client\Response
      */
     protected function _doRequest($method, $url, $data, $options)
@@ -442,7 +442,7 @@ class Client
      * @param string $url Either a full URL or just the path.
      * @param string|array $query The query data for the URL.
      * @param array $options The config options stored with Client::config()
-     * @return string A complete url with scheme, port, host, path.
+     * @return string A complete url with scheme, port, host, and path.
      */
     public function buildUrl($url, $query = [], $options = [])
     {
@@ -488,7 +488,7 @@ class Client
      * @param string $method HTTP method name.
      * @param string $url The url including query string.
      * @param mixed $data The request body.
-     * @param array $options The options to use. Contains auth, proxy etc.
+     * @param array $options The options to use. Contains auth, proxy, etc.
      * @return \Cake\Http\Client\Request
      */
     protected function _createRequest($method, $url, $data, $options)