Make WordPress Core


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

    r56527 r56559  
    958958     */
    959959    public function test_filter_block_registration() {
    960         $filter_registration = static function( $args, $name ) {
     960        $filter_registration = static function ( $args, $name ) {
    961961            $args['attributes'] = array( $name => array( 'type' => 'boolean' ) );
    962962            return $args;
     
    976976     */
    977977    public function test_filter_block_registration_metadata() {
    978         $filter_metadata_registration = static function( $metadata ) {
     978        $filter_metadata_registration = static function ( $metadata ) {
    979979            $metadata['apiVersion'] = 3;
    980980            return $metadata;
     
    994994     */
    995995    public function test_filter_block_registration_metadata_settings() {
    996         $filter_metadata_registration = static function( $settings, $metadata ) {
     996        $filter_metadata_registration = static function ( $settings, $metadata ) {
    997997            $settings['api_version'] = $metadata['apiVersion'] + 1;
    998998            return $settings;
Note: See TracChangeset for help on using the changeset viewer.