Make WordPress Core


Ignore:
Timestamp:
09/12/2023 03:21:02 PM (17 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/context.php

    r56547 r56559  
    110110                    'gutenberg/contextWithoutDefault',
    111111                ),
    112                 'render_callback' => static function( $attributes, $content, $block ) use ( &$provided_context ) {
     112                'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) {
    113113                    $provided_context[] = $block->context;
    114114
     
    150150            array(
    151151                'uses_context'    => array( 'postId', 'postType' ),
    152                 'render_callback' => static function( $attributes, $content, $block ) use ( &$provided_context ) {
     152                'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) {
    153153                    $provided_context[] = $block->context;
    154154
     
    183183            array(
    184184                'uses_context'    => array( 'example' ),
    185                 'render_callback' => static function( $attributes, $content, $block ) use ( &$provided_context ) {
     185                'render_callback' => static function ( $attributes, $content, $block ) use ( &$provided_context ) {
    186186                    $provided_context[] = $block->context;
    187187
     
    191191        );
    192192
    193         $filter_block_context = static function( $context ) {
     193        $filter_block_context = static function ( $context ) {
    194194            $context['example'] = 'ok';
    195195            return $context;
Note: See TracChangeset for help on using the changeset viewer.