From 0dcaec4811a792053b37fd0c3e47760316ccaab1 Mon Sep 17 00:00:00 2001 From: Tarcisio Cesar Date: Tue, 23 Jan 2024 20:34:55 -0300 Subject: [PATCH] Update Menu.php Correcting indentation Signed-off-by: Tarcisio Cesar --- src/Helper/Navigation/Menu.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Helper/Navigation/Menu.php b/src/Helper/Navigation/Menu.php index 67e5b252c..98980cd19 100644 --- a/src/Helper/Navigation/Menu.php +++ b/src/Helper/Navigation/Menu.php @@ -269,21 +269,21 @@ protected function renderNormalMenu( $liActiveClass ) { $html = ''; - + $escaper = $this->view->plugin('escapeHtmlAttr'); assert($escaper instanceof EscapeHtmlAttr); $foundPage = null; $foundDepth = 0; - + if ($onlyActive) { - // find deepest active - $found = $this->findActive($container, $minDepth, $maxDepth); - if ($found) { - $foundPage = $found['page']; - $foundDepth = $found['depth']; - } - } + // find deepest active + $found = $this->findActive($container, $minDepth, $maxDepth); + if ($found) { + $foundPage = $found['page']; + foundDepth = $found['depth']; + } + } // create iterator $iterator = new RecursiveIteratorIterator(