Make WordPress Core


Ignore:
Timestamp:
03/20/2022 04:01:01 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http.php

    r52597 r52964  
    656656     * @since 2.7.0
    657657     *
    658      * @param string $str_response The full response string.
     658     * @param string $response The full response string.
    659659     * @return array {
    660660     *     Array with response headers and body.
     
    664664     * }
    665665     */
    666     public static function processResponse( $str_response ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
    667         $response = explode( "\r\n\r\n", $str_response, 2 );
     666    public static function processResponse( $response ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
     667        $response = explode( "\r\n\r\n", $response, 2 );
    668668
    669669        return array(
Note: See TracChangeset for help on using the changeset viewer.