From c49c99f83759405349c344d315846fee24c75361 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 20 Mar 2022 15:50:40 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-http-streams.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-http-streams.php b/src/wp-includes/class-wp-http-streams.php index 7df0af651f..a7f73d84ce 100644 --- a/src/wp-includes/class-wp-http-streams.php +++ b/src/wp-includes/class-wp-http-streams.php @@ -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'];