Skip to content

Commit 7656b5f

Browse files
Coding Standards: Include one space after function keyword for closures.
Note: This is enforced by WPCS 3.0.0. Reference: [WordPress/WordPress-Coding-Standards#2328 WPCS: PR #2328 Core: properly check formatting of function declaration statements]. Props jrf. See #59161, #58831. Built from https://develop.svn.wordpress.org/trunk@56559 git-svn-id: https://core.svn.wordpress.org/trunk@56071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 7ecf79c commit 7656b5f

32 files changed

+45
-45
lines changed

wp-admin/edit-form-blocks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// Default to is-fullscreen-mode to avoid jumps in the UI.
3232
add_filter(
3333
'admin_body_class',
34-
static function( $classes ) {
34+
static function ( $classes ) {
3535
return "$classes is-fullscreen-mode";
3636
}
3737
);

wp-admin/includes/class-wp-community-events.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ protected function trim_events( array $events ) {
483483

484484
$future_wordcamps = array_filter(
485485
$future_events,
486-
static function( $wordcamp ) {
486+
static function ( $wordcamp ) {
487487
return 'wordcamp' === $wordcamp['type'];
488488
}
489489
);

wp-admin/includes/class-wp-site-health-auto-updates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function run_tests() {
4242

4343
$tests = array_filter( $tests );
4444
$tests = array_map(
45-
static function( $test ) {
45+
static function ( $test ) {
4646
$test = (object) $test;
4747

4848
if ( empty( $test->severity ) ) {

wp-admin/includes/file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2726,7 +2726,7 @@ function wp_opcache_invalidate_directory( $dir ) {
27262726
* with sub-directories represented as nested arrays.
27272727
* @param string $path Absolute path to the directory.
27282728
*/
2729-
$invalidate_directory = static function( $dirlist, $path ) use ( &$invalidate_directory ) {
2729+
$invalidate_directory = static function ( $dirlist, $path ) use ( &$invalidate_directory ) {
27302730
$path = trailingslashit( $path );
27312731

27322732
foreach ( $dirlist as $name => $details ) {

wp-admin/includes/update-core.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@ function _upgrade_422_find_genericons_files_in_folder( $directory ) {
18051805
$dirs = glob( $directory . '*', GLOB_ONLYDIR );
18061806
$dirs = array_filter(
18071807
$dirs,
1808-
static function( $dir ) {
1808+
static function ( $dir ) {
18091809
/*
18101810
* Skip any node_modules directories.
18111811
*

wp-admin/options-privacy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
add_filter(
2525
'admin_body_class',
26-
static function( $body_class ) {
26+
static function ( $body_class ) {
2727
$body_class .= ' privacy-settings ';
2828

2929
return $body_class;

wp-admin/privacy-policy-guide.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
add_filter(
2424
'admin_body_class',
25-
static function( $body_class ) {
25+
static function ( $body_class ) {
2626
$body_class .= ' privacy-settings ';
2727

2828
return $body_class;

wp-admin/site-editor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
// Default to is-fullscreen-mode to avoid jumps in the UI.
4343
add_filter(
4444
'admin_body_class',
45-
static function( $classes ) {
45+
static function ( $classes ) {
4646
return "$classes is-fullscreen-mode";
4747
}
4848
);

wp-admin/upload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
// Remove the error parameter added by deprecation of wp-admin/media.php.
145145
add_filter(
146146
'removable_query_args',
147-
function() {
147+
function () {
148148
return array( 'error' );
149149
},
150150
10,

wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public static function register( $wp_customize ) {
187187
'settings' => 'accent_hue',
188188
'description' => __( 'Apply a custom color for links, buttons, featured images.', 'twentytwenty' ),
189189
'mode' => 'hue',
190-
'active_callback' => static function() use ( $wp_customize ) {
190+
'active_callback' => static function () use ( $wp_customize ) {
191191
return ( 'custom' === $wp_customize->get_setting( 'accent_hue_active' )->value() );
192192
},
193193
)

0 commit comments

Comments
 (0)