Make WordPress Core


Ignore:
Timestamp:
09/12/2023 03:21:02 PM (9 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-detection.php

    r55620 r56559  
    118118        add_filter(
    119119            'pre_wp_update_https_detection_errors',
    120             static function() {
     120            static function () {
    121121                return new WP_Error();
    122122            }
     
    128128        add_filter(
    129129            'pre_wp_update_https_detection_errors',
    130             static function() {
     130            static function () {
    131131                return new WP_Error(
    132132                    'ssl_verification_failed',
     
    317317     */
    318318    private function filter_set_url_scheme( $scheme ) {
    319         return static function( $url ) use ( $scheme ) {
     319        return static function ( $url ) use ( $scheme ) {
    320320            return set_url_scheme( $url, $scheme );
    321321        };
Note: See TracChangeset for help on using the changeset viewer.