Make WordPress Core


Ignore:
Timestamp:
09/12/2023 03:21:02 PM (3 years 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/rest-api/rest-widget-types-controller.php

    r55457 r56559  
    162162                $text_widgets = array_filter(
    163163                        $data,
    164                         static function( $widget ) {
     164                        static function ( $widget ) {
    165165                                return 'text' === $widget['id'];
    166166                        }
     
    190190                        $widget_id,
    191191                        'WP legacy widget',
    192                         static function() {}
     192                        static function () {}
    193193                );
    194194                wp_set_current_user( self::$admin_id );
     
    221221                        $widget_id,
    222222                        '‘Legacy ‑ Archive ‑ Widget’',
    223                         static function() {},
     223                        static function () {},
    224224                        array(
    225225                                'description' => '“A great & interesting archive of your site’s posts!”',
Note: See TracChangeset for help on using the changeset viewer.