Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jan 11, 2024
1 parent 521d91f commit 56eb177
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Menu/MenuItemMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ public function isSelected(MenuItemDto $menuItemDto): bool
}

$currentPageQueryParameters = $adminContext->getRequest()->query->all();
$menuItemQueryString = null === $menuItemDto->getLinkUrl()
? null
: parse_url($menuItemDto->getLinkUrl(), \PHP_URL_QUERY);
$menuItemQueryString = null === $menuItemDto->getLinkUrl() ? null : parse_url($menuItemDto->getLinkUrl(), \PHP_URL_QUERY);

$menuItemQueryParameters = [];

if (true === \is_string($menuItemQueryString)) {
parse_str($menuItemQueryString, $menuItemQueryParameters);
}
Expand Down

0 comments on commit 56eb177

Please sign in to comment.