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/src/wp-includes/class-wp-customize-widgets.php

    r55703 r56559  
    983983        } elseif ( preg_match( $this->setting_id_patterns['widget_instance'], $id, $matches ) ) {
    984984            $id_base                      = $matches['id_base'];
    985             $args['sanitize_callback']    = function( $value ) use ( $id_base ) {
     985            $args['sanitize_callback']    = function ( $value ) use ( $id_base ) {
    986986                return $this->sanitize_widget_instance( $value, $id_base );
    987987            };
    988             $args['sanitize_js_callback'] = function( $value ) use ( $id_base ) {
     988            $args['sanitize_js_callback'] = function ( $value ) use ( $id_base ) {
    989989                return $this->sanitize_widget_js_instance( $value, $id_base );
    990990            };
Note: See TracChangeset for help on using the changeset viewer.