From ddccfab16a8e2e350bf975077700b8acb148959b Mon Sep 17 00:00:00 2001 From: Ari Stathopoulos Date: Mon, 29 Mar 2021 16:52:52 +0300 Subject: [PATCH] phpcbf fixes (#30346) --- lib/class-wp-theme-json-resolver.php | 4 ++-- lib/class-wp-theme-json.php | 2 +- lib/editor-settings.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/class-wp-theme-json-resolver.php b/lib/class-wp-theme-json-resolver.php index e3a2a2a0e84d60..6815dc68ecca2e 100644 --- a/lib/class-wp-theme-json-resolver.php +++ b/lib/class-wp-theme-json-resolver.php @@ -201,7 +201,7 @@ private static function translate( $theme_json, $domain = 'default' ) { if ( is_null( $array_to_translate ) ) { continue; } - $translated_array = self::translate_theme_json_chunk( $array_to_translate, $key, $context, $domain ); + $translated_array = self::translate_theme_json_chunk( $array_to_translate, $key, $context, $domain ); gutenberg_experimental_set( $theme_json['settings'][ $setting_key ], $path, $translated_array ); } } else { @@ -209,7 +209,7 @@ private static function translate( $theme_json, $domain = 'default' ) { if ( is_null( $array_to_translate ) ) { continue; } - $translated_array = self::translate_theme_json_chunk( $array_to_translate, $key, $context, $domain ); + $translated_array = self::translate_theme_json_chunk( $array_to_translate, $key, $context, $domain ); gutenberg_experimental_set( $theme_json, $path, $translated_array ); } } diff --git a/lib/class-wp-theme-json.php b/lib/class-wp-theme-json.php index 35da7df75b79a4..e422d58778da0f 100644 --- a/lib/class-wp-theme-json.php +++ b/lib/class-wp-theme-json.php @@ -649,7 +649,7 @@ private static function compute_style_properties( $declarations, $styles ) { foreach ( $properties as $prop ) { $value = self::get_property_value( $styles, $prop['value'] ); if ( ! empty( $value ) ) { - $declarations[] = array( + $declarations[] = array( 'name' => $prop['name'], 'value' => $value, ); diff --git a/lib/editor-settings.php b/lib/editor-settings.php index 9a3cec289bc9a5..3aff40945abf69 100644 --- a/lib/editor-settings.php +++ b/lib/editor-settings.php @@ -80,7 +80,7 @@ function gutenberg_extend_post_editor_settings( $settings ) { $image_default_size = get_option( 'image_default_size', 'large' ); $image_sizes = wp_list_pluck( $settings['imageSizes'], 'slug' ); - $settings['imageDefaultSize'] = in_array( $image_default_size, $image_sizes, true ) ? $image_default_size : 'large'; + $settings['imageDefaultSize'] = in_array( $image_default_size, $image_sizes, true ) ? $image_default_size : 'large'; $settings['__unstableEnableFullSiteEditingBlocks'] = gutenberg_is_fse_theme(); return $settings;