Make WordPress Core


Ignore:
Timestamp:
09/12/2023 03:21:02 PM (9 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Include one space after function keyword for closures.

Note: This is enforced by WPCS 3.0.0.

Reference: WPCS: PR #2328 Core: properly check formatting of function declaration statements.

Props jrf.
See #59161, #58831.

File:
1 edited

Legend:

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

    r56549 r56559  
    32603260    $text = preg_replace_callback(
    32613261        '|<a (.+?)>|i',
    3262         static function( $matches ) {
     3262        static function ( $matches ) {
    32633263            return wp_rel_callback( $matches, 'nofollow' );
    32643264        },
     
    32943294    $text = preg_replace_callback(
    32953295        '|<a (.+?)>|i',
    3296         static function( $matches ) {
     3296        static function ( $matches ) {
    32973297            return wp_rel_callback( $matches, 'nofollow ugc' );
    32983298        },
     
    47574757    $safe_text = (string) preg_replace_callback(
    47584758        $regex,
    4759         static function( $matches ) {
     4759        static function ( $matches ) {
    47604760            if ( ! isset( $matches[0] ) ) {
    47614761                return '';
Note: See TracChangeset for help on using the changeset viewer.