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/actions.php

    r56548 r56559  
    388388        public function test_action_closure() {
    389389                $hook_name = __FUNCTION__;
    390                 $closure   = static function( $a, $b ) {
     390                $closure   = static function ( $a, $b ) {
    391391                        $GLOBALS[ $a ] = $b;
    392392                };
     
    401401
    402402                $hook_name2 = __FUNCTION__ . '_2';
    403                 $closure2   = static function() {
     403                $closure2   = static function () {
    404404                        $GLOBALS['closure_no_args'] = true;
    405405                };
Note: See TracChangeset for help on using the changeset viewer.