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

    r56186 r56559  
    252252        add_filter(
    253253            'random_password',
    254             static function() {
     254            static function () {
    255255                return '123456';
    256256            },
     
    286286        add_filter(
    287287            'random_password',
    288             static function() {
     288            static function () {
    289289                return '1a2b3c4d5e6f';
    290290            },
     
    322322        add_filter(
    323323            'wp_unique_filename',
    324             static function( $filename ) use ( &$filenames_over_limit ) {
     324            static function ( $filename ) use ( &$filenames_over_limit ) {
    325325                if ( strlen( $filename ) === 252 ) {
    326326                    $filename .= '1';
     
    358358        add_filter(
    359359            'random_password',
    360             static function() {
     360            static function () {
    361361                return '1a2b3c4d5e6f';
    362362            },
     
    376376        add_filter(
    377377            'wp_unique_filename',
    378             static function( $filename ) use ( &$filenames_over_limit ) {
     378            static function ( $filename ) use ( &$filenames_over_limit ) {
    379379                if ( strlen( $filename ) === 252 ) {
    380380                    $filename .= '1';
Note: See TracChangeset for help on using the changeset viewer.