Coding Standards: Rename the $headerValue variable to $header_value in WP_Http_Streams::request().

This fixes a `Variable "$headerValue" is not in valid snake_case format` WPCS warning.

Follow-up to [8516], [51825], [51929], [51940], [52960], [52961], [52962].

Props azouamauriac.
See #54728.

git-svn-id: https://develop.svn.wordpress.org/trunk@52963 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2022-03-20 15:50:40 +00:00
parent e38ea6ae31
commit c49c99f837

View File

@ -230,8 +230,8 @@ class WP_Http_Streams {
}
if ( is_array( $parsed_args['headers'] ) ) {
foreach ( (array) $parsed_args['headers'] as $header => $headerValue ) {
$headers .= $header . ': ' . $headerValue . "\r\n";
foreach ( (array) $parsed_args['headers'] as $header => $header_value ) {
$headers .= $header . ': ' . $header_value . "\r\n";
}
} else {
$headers .= $parsed_args['headers'];