Skip to content

Commit

Permalink
Update Menu.php
Browse files Browse the repository at this point in the history
Correcting indentation

Signed-off-by: Tarcisio Cesar <tarcisiocms@outlook.com>
  • Loading branch information
tarcisiocms authored Jan 23, 2024
1 parent 72c6dfd commit 0dcaec4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Helper/Navigation/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

Check failure on line 284 in src/Helper/Navigation/Menu.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (Psalm [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@v1, ...

UndefinedConstant

src/Helper/Navigation/Menu.php:284:17: UndefinedConstant: Const foundDepth is not defined (see https://psalm.dev/020)

Check failure on line 284 in src/Helper/Navigation/Menu.php

View workflow job for this annotation

GitHub Actions / ci / QA Checks (Psalm [8.1, locked], ubuntu-latest, laminas/laminas-continuous-integration-action@v1, ...

ParseError

src/Helper/Navigation/Menu.php:284:28: ParseError: Syntax error, unexpected '=' on line 284 (see https://psalm.dev/173)
}
}

// create iterator
$iterator = new RecursiveIteratorIterator(
Expand Down

0 comments on commit 0dcaec4

Please sign in to comment.