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/rest-api/rest-posts-controller.php

    r56549 r56559  
    22792279    public function test_prepare_item_filters_content_when_needed() {
    22802280        $filter_count   = 0;
    2281         $filter_content = static function() use ( &$filter_count ) {
     2281        $filter_content = static function () use ( &$filter_count ) {
    22822282            ++$filter_count;
    22832283            return '<p>Filtered content.</p>';
     
    23152315    public function test_prepare_item_skips_content_filter_if_not_needed() {
    23162316        $filter_count   = 0;
    2317         $filter_content = static function() use ( &$filter_count ) {
     2317        $filter_content = static function () use ( &$filter_count ) {
    23182318            ++$filter_count;
    23192319            return '<p>Filtered content.</p>';
Note: See TracChangeset for help on using the changeset viewer.