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

    r56547 r56559  
    17271727        add_filter(
    17281728            'upload_mimes',
    1729             static function( $mimes ) {
     1729            static function ( $mimes ) {
    17301730                $mimes['svg'] = 'image/svg+xml';
    17311731                return $mimes;
     
    17651765        add_filter(
    17661766            'upload_mimes',
    1767             static function( $mimes ) use ( $woff_mime_type ) {
     1767            static function ( $mimes ) use ( $woff_mime_type ) {
    17681768                $mimes['woff'] = $woff_mime_type;
    17691769                return $mimes;
Note: See TracChangeset for help on using the changeset viewer.