mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
Coding Standards: Rename the $strResponse variable to $response in WP_Http_Streams::request().
This fixes a `Variable "$strResponse" is not in valid snake_case format` WPCS warning. For consistency, this commit also renames the `WP_Http::processResponse()` argument to `$response`. Follow-up to [8516], [51825], [51929], [51940], [52025], [52960], [52961], [52962], [52963]. Props azouamauriac. See #54728. git-svn-id: https://develop.svn.wordpress.org/trunk@52964 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -655,7 +655,7 @@ class WP_Http {
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param string $str_response The full response string.
|
||||
* @param string $response The full response string.
|
||||
* @return array {
|
||||
* Array with response headers and body.
|
||||
*
|
||||
@@ -663,8 +663,8 @@ class WP_Http {
|
||||
* @type string $body HTTP response body.
|
||||
* }
|
||||
*/
|
||||
public static function processResponse( $str_response ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
|
||||
$response = explode( "\r\n\r\n", $str_response, 2 );
|
||||
public static function processResponse( $response ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
|
||||
$response = explode( "\r\n\r\n", $response, 2 );
|
||||
|
||||
return array(
|
||||
'headers' => $response[0],
|
||||
|
||||
Reference in New Issue
Block a user