Make WordPress Core

Changeset 57538


Ignore:
Timestamp:
02/06/2024 01:23:54 AM (4 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Rename the $oSelf variable in WP_MatchesMapRegex::apply().

This resolves a WPCS warning:

Variable "$oSelf" is not in valid snake_case format, try "$o_self"

Follow-up to [11853], [38376].

See #59650.

File:
1 edited

Legend:

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

    r54133 r57538  
    6464     */
    6565    public static function apply( $subject, $matches ) {
    66         $oSelf = new WP_MatchesMapRegex( $subject, $matches );
    67         return $oSelf->output;
     66        $result = new WP_MatchesMapRegex( $subject, $matches );
     67        return $result->output;
    6868    }
    6969
Note: See TracChangeset for help on using the changeset viewer.