From b5427defa6a3302dea2f32f8f11121f993fbcb08 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 19 Aug 2023 18:47:09 +0200 Subject: [PATCH] CS: remove redundant semi-colons As these are not closures/anonymous classes, these semi-colons are redundant and create an empty PHP statement. --- src/wp-includes/blocks/navigation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/blocks/navigation.php b/src/wp-includes/blocks/navigation.php index ac800aaa78797..9a0f9339672ae 100644 --- a/src/wp-includes/blocks/navigation.php +++ b/src/wp-includes/blocks/navigation.php @@ -121,13 +121,13 @@ function block_core_navigation_add_directives_to_submenu( $w, $block_attributes ) ) { $w->set_attribute( 'data-wp-on--click', 'actions.core.navigation.toggleMenuOnClick' ); $w->set_attribute( 'data-wp-bind--aria-expanded', 'selectors.core.navigation.isMenuOpen' ); - }; + } // Iterate through subitems if exist. block_core_navigation_add_directives_to_submenu( $w, $block_attributes ); } return $w->get_updated_html(); - }; + } /** * Replaces view script for the Navigation block with version using Interactivity API.