From 1edc13b5ebc1a684abc4e8db531750372668d336 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Mon, 29 Aug 2016 23:05:01 -0700 Subject: [PATCH] Clean up docblocks --- src/Curl/CaseInsensitiveArray.php | 4 +--- src/Curl/Curl.php | 11 +++++++++-- src/Curl/MultiCurl.php | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/Curl/CaseInsensitiveArray.php b/src/Curl/CaseInsensitiveArray.php index 878bfe6..bcf22e9 100644 --- a/src/Curl/CaseInsensitiveArray.php +++ b/src/Curl/CaseInsensitiveArray.php @@ -35,7 +35,7 @@ class CaseInsensitiveArray implements \ArrayAccess, \Countable, \Iterator * * @param mixed[] $initial (optional) Existing Array to convert. * - * @return void + * @return CaseInsensitiveArray * * @access public */ @@ -205,8 +205,6 @@ class CaseInsensitiveArray implements \ArrayAccess, \Countable, \Iterator * * @see https://secure.php.net/manual/en/iterator.valid.php * - * @param void - * * @return bool If the current position is valid. * * @access public diff --git a/src/Curl/Curl.php b/src/Curl/Curl.php index 637e5df..5fbf1b8 100644 --- a/src/Curl/Curl.php +++ b/src/Curl/Curl.php @@ -403,6 +403,8 @@ class Curl * * @access public * @param $opt + * + * @return mixed */ public function getInfo($opt) { @@ -514,8 +516,8 @@ class Curl * @access public * @param $url * @param $data - * @param $follow_303_with_post If true, will cause 303 redirections to be followed using - * a POST request (default: false). + * @param $follow_303_with_post + * If true, will cause 303 redirections to be followed using a POST request (default: false). * Notes: * - Redirections are only followed if the CURLOPT_FOLLOWLOCATION option is set to true. * - According to the HTTP specs (see [1]), a 303 redirection should be followed using @@ -688,6 +690,7 @@ class Curl * * @access public * @param $key + * * @return mixed */ public function getCookie($key) @@ -700,6 +703,7 @@ class Curl * * @access public * @param $key + * * @return mixed */ public function getResponseCookie($key) @@ -711,6 +715,7 @@ class Curl * Get response cookies. * * @access public + * * @return array */ public function getResponseCookies() @@ -745,6 +750,8 @@ class Curl * * @access public * @param $string + * + * @return bool */ public function setCookieString($string) { diff --git a/src/Curl/MultiCurl.php b/src/Curl/MultiCurl.php index f984b2a..e9c88b6 100644 --- a/src/Curl/MultiCurl.php +++ b/src/Curl/MultiCurl.php @@ -193,8 +193,8 @@ class MultiCurl * @access public * @param $url * @param $data - * @param $follow_303_with_post If true, will cause 303 redirections to be followed using - * GET requests (default: false). + * @param $follow_303_with_post + * If true, will cause 303 redirections to be followed using GET requests (default: false). * Note: Redirections are only followed if the CURLOPT_FOLLOWLOCATION option is set to true. * * @return object