mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Coding Standards: Include one space after function keyword for closures.
Note: This is enforced by WPCS 3.0.0. Reference: [https://github.com/WordPress/WordPress-Coding-Standards/pull/2328 WPCS: PR #2328 Core: properly check formatting of function declaration statements]. Props jrf. See #59161, #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56559 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2334,7 +2334,7 @@ class WP_Theme_JSON {
|
||||
// Prepend the variation selector to the current selector.
|
||||
$split_selectors = explode( ',', $shortened_selector );
|
||||
$updated_selectors = array_map(
|
||||
static function( $split_selector ) use ( $clean_style_variation_selector ) {
|
||||
static function ( $split_selector ) use ( $clean_style_variation_selector ) {
|
||||
return $clean_style_variation_selector . $split_selector;
|
||||
},
|
||||
$split_selectors
|
||||
@@ -2372,7 +2372,7 @@ class WP_Theme_JSON {
|
||||
$pseudo_matches = array_values(
|
||||
array_filter(
|
||||
$element_pseudo_allowed,
|
||||
static function( $pseudo_selector ) use ( $selector ) {
|
||||
static function ( $pseudo_selector ) use ( $selector ) {
|
||||
return str_contains( $selector, $pseudo_selector );
|
||||
}
|
||||
)
|
||||
@@ -3733,7 +3733,7 @@ class WP_Theme_JSON {
|
||||
$theme_vars = static::compute_theme_vars( $settings );
|
||||
$vars = array_reduce(
|
||||
array_merge( $preset_vars, $theme_vars ),
|
||||
function( $carry, $item ) {
|
||||
function ( $carry, $item ) {
|
||||
$name = $item['name'];
|
||||
$carry[ "var({$name})" ] = $item['value'];
|
||||
return $carry;
|
||||
|
||||
Reference in New Issue
Block a user