Skip to content

Commit

Permalink
Coding Standards: Rename the $oSelf variable in `WP_MatchesMapRegex…
Browse files Browse the repository at this point in the history
…::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.

git-svn-id: https://develop.svn.wordpress.org/trunk@57538 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Feb 6, 2024
1 parent 2ac96bc commit 5810f22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/class-wp-matchesmapregex.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public function __construct( $subject, $matches ) {
* @return string
*/
public static function apply( $subject, $matches ) {
$oSelf = new WP_MatchesMapRegex( $subject, $matches );
return $oSelf->output;
$result = new WP_MatchesMapRegex( $subject, $matches );
return $result->output;
}

/**
Expand Down

0 comments on commit 5810f22

Please sign in to comment.