Make WordPress Core

Changeset 57538

Timestamp:
02/06/2024 01:23:54 AM (6 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        $ = new WP_MatchesMapRegex( $subject, $matches );
     67        return $->output;
    6868    }
    6969
Note: See TracChangeset for help on using the changeset viewer.