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/https-migration.php

    r51657 r56559  
    162162        $scheme = $enabled ? 'https' : 'http';
    163163
    164         $replace_scheme = static function( $url ) use ( $scheme ) {
     164        $replace_scheme = static function ( $url ) use ( $scheme ) {
    165165            return str_replace( array( 'http://', 'https://' ), $scheme . '://', $url );
    166166        };
     
    173173        add_filter(
    174174            "option_$option",
    175             static function() use ( $value ) {
     175            static function () use ( $value ) {
    176176                return $value;
    177177            }
Note: See TracChangeset for help on using the changeset viewer.