Skip to content

Commit 6523e72

Browse files
Coding Standards: Rename the $strResponse argument to $str_response in WP_Http::processResponse().
This fixes a `Variable "$strResponse" is not in valid snake_case format` WPCS warning. Additionally, rename a `$res` variable to `$response` for clarity. Follow-up to [8516], [51823], [51826], [51877]. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@52025 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9c72fd7 commit 6523e72

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/wp-includes/class-http.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -655,20 +655,20 @@ public function head( $url, $args = array() ) {
655655
*
656656
* @since 2.7.0
657657
*
658-
* @param string $strResponse The full response string.
658+
* @param string $str_response The full response string.
659659
* @return array {
660660
* Array with response headers and body.
661661
*
662662
* @type string $headers HTTP response headers.
663663
* @type string $body HTTP response body.
664664
* }
665665
*/
666-
public static function processResponse( $strResponse ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
667-
$res = explode( "\r\n\r\n", $strResponse, 2 );
666+
public static function processResponse( $str_response ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
667+
$response = explode( "\r\n\r\n", $str_response, 2 );
668668

669669
return array(
670-
'headers' => $res[0],
671-
'body' => isset( $res[1] ) ? $res[1] : '',
670+
'headers' => $response[0],
671+
'body' => isset( $response[1] ) ? $response[1] : '',
672672
);
673673
}
674674

0 commit comments

Comments
 (0)