Make WordPress Core


Ignore:
Timestamp:
09/12/2023 03:21:02 PM (20 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/tests/phpunit/tests/blocks/renderCommentTemplate.php

    r56262 r56559  
    537537        add_filter(
    538538            'render_block',
    539             static function( $block_content, $block ) use ( $parsed_comment_author_name_block ) {
     539            static function ( $block_content, $block ) use ( $parsed_comment_author_name_block ) {
    540540                /*
    541541                * Insert a Comment Author Name block (which requires `commentId`
     
    592592        add_filter( 'render_block', array( $render_block_callback, 'filter' ), 10, 3 );
    593593
    594         $render_block_data_callback = static function( $parsed_block ) {
     594        $render_block_data_callback = static function ( $parsed_block ) {
    595595            // Add a Social Links block to a Comment Template block's inner blocks.
    596596            if ( 'core/comment-template' === $parsed_block['blockName'] ) {
Note: See TracChangeset for help on using the changeset viewer.