Make WordPress Core


Ignore:
Timestamp:
09/12/2023 03:21:02 PM (2 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/rest-api/wpRestUrlDetailsController.php

    r56548 r56559  
    297297        add_filter(
    298298            'rest_url_details_http_request_args',
    299             static function( $args, $url ) {
     299            static function ( $args, $url ) {
    300300                return array_merge(
    301301                    $args,
     
    340340        add_filter(
    341341            "pre_site_transient_{$transient_name}",
    342             static function() {
     342            static function () {
    343343                return '<html><head><title>This value from cache.</title></head><body></body></html>';
    344344            }
     
    368368        add_filter(
    369369            'rest_prepare_url_details',
    370             static function( $response ) {
     370            static function ( $response ) {
    371371
    372372                $data = $response->get_data();
     
    418418        add_filter(
    419419            'rest_prepare_url_details',
    420             static function( $response, $url ) {
     420            static function ( $response, $url ) {
    421421                return new WP_REST_Response(
    422422                    array(
Note: See TracChangeset for help on using the changeset viewer.