Skip to content

Commit

Permalink
Coding Standards: Rename the $headerValue variable to `$header_valu…
Browse files Browse the repository at this point in the history
…e` 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
  • Loading branch information
SergeyBiryukov committed Mar 20, 2022
1 parent e38ea6a commit c49c99f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/class-wp-http-streams.php
Expand Up @@ -230,8 +230,8 @@ public function request( $url, $args = array() ) {
}

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'];
Expand Down

0 comments on commit c49c99f

Please sign in to comment.