Merge pull request #831 from zachborboa/master

Fix PHP CS Fixer validation
This commit is contained in:
Zach Borboa
2023-12-29 19:40:56 -08:00
committed by GitHub
2 changed files with 18 additions and 18 deletions
+14 -14
View File
@@ -699,20 +699,20 @@ class Curl extends BaseCurl
* @param $url
* @param $data
* @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 the GET method. 301 and 302 must not.
* - In order to force a 303 redirection to be performed using the same method,
* the underlying cURL object must be set in a special state (the
* CURLOPT_CUSTOMREQUEST option must be set to the method to use after the
* redirection). Due to a limitation of the cURL extension of PHP < 5.5.11 ([2],
* [3]), it is not possible to reset this option. Using these PHP engines, it is
* therefore impossible to restore this behavior on an existing php-curl-class
* Curl object.
* 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 the GET method. 301 and 302 must not.
* - In order to force a 303 redirection to be performed using the same method,
* the underlying cURL object must be set in a special state (the
* CURLOPT_CUSTOMREQUEST option must be set to the method to use after the
* redirection). Due to a limitation of the cURL extension of PHP < 5.5.11 ([2],
* [3]), it is not possible to reset this option. Using these PHP engines, it is
* therefore impossible to restore this behavior on an existing php-curl-class
* Curl object.
* @return mixed Returns the value provided by exec.
*
* [1] https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2
+4 -4
View File
@@ -241,9 +241,9 @@ class MultiCurl extends BaseCurl
* @param $url
* @param $data
* @param $follow_303_with_post
* If true, will cause 303 redirections to be followed using a POST request
* (default: false). Note: Redirections are only followed if the
* CURLOPT_FOLLOWLOCATION option is set to true.
* If true, will cause 303 redirections to be followed using a POST request
* (default: false). Note: Redirections are only followed if the
* CURLOPT_FOLLOWLOCATION option is set to true.
* @return object
*/
public function addPost($url, $data = '', $follow_303_with_post = false)
@@ -499,7 +499,7 @@ class MultiCurl extends BaseCurl
* used for the request.
*
* @param $proxies array - A list of HTTP proxies to tunnel requests
* through. May include port number.
* through. May include port number.
*/
public function setProxies($proxies)
{