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/src/wp-includes/script-loader.php

    r56500 r56559  
    24542454    return array_filter(
    24552455        $nodes,
    2456         static function( $node ) {
     2456        static function ( $node ) {
    24572457            return ! in_array( 'blocks', $node['path'], true );
    24582458        },
     
    26562656                    add_filter(
    26572657                        'render_block',
    2658                         static function( $html, $block ) use ( $block_name, $style_properties ) {
     2658                        static function ( $html, $block ) use ( $block_name, $style_properties ) {
    26592659                            if ( $block['blockName'] === $block_name ) {
    26602660                                wp_enqueue_style( $style_properties['style_handle'] );
     
    29182918        usort(
    29192919            $styles,
    2920             static function( $a, $b ) {
     2920            static function ( $a, $b ) {
    29212921                return ( $a['size'] <= $b['size'] ) ? -1 : 1;
    29222922            }
     
    31513151     * @return string Block content.
    31523152     */
    3153     $callback = static function( $content ) use ( $args ) {
     3153    $callback = static function ( $content ) use ( $args ) {
    31543154        // Register the stylesheet.
    31553155        if ( ! empty( $args['src'] ) ) {
     
    31893189         * @return string Block content.
    31903190         */
    3191         $callback_separate = static function( $content, $block ) use ( $block_name, $callback ) {
     3191        $callback_separate = static function ( $content, $block ) use ( $block_name, $callback ) {
    31923192            if ( ! empty( $block['blockName'] ) && $block_name === $block['blockName'] ) {
    31933193                return $callback( $content );
Note: See TracChangeset for help on using the changeset viewer.