From 58c63eba69ae9af1915cecbc95e0f30f5b3f690e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Fri, 17 Dec 2021 11:20:51 +0100 Subject: [PATCH] Fix lint issues --- lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php b/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php index 5299f875873ec5..83d9508fb59565 100644 --- a/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php +++ b/lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php @@ -431,8 +431,8 @@ private static function sanitize( $input, $valid_block_names, $valid_element_nam // Some styles are only meant to be available at the top-level (e.g.: blockGap), // hence, the schema for blocks & elements should not have them. $styles_non_top_level = self::VALID_STYLES; - foreach( array_keys( $styles_non_top_level ) as $section ) { - foreach( array_keys( $styles_non_top_level[ $section ] ) as $prop ) { + foreach ( array_keys( $styles_non_top_level ) as $section ) { + foreach ( array_keys( $styles_non_top_level[ $section ] ) as $prop ) { if ( 'top' === $styles_non_top_level[ $section ][ $prop ] ) { unset( $styles_non_top_level[ $section ][ $prop ] ); }