fix gitlab tests
This commit is contained in:
@@ -11,7 +11,7 @@ class NavbarService
|
||||
public function getMenuForRoles(array $roles): array
|
||||
{
|
||||
$roles = array_values(array_filter(array_map(fn ($r) => strtolower(trim((string) $r)), $roles)));
|
||||
$cacheKey = 'navbar_'.md5(json_encode($roles));
|
||||
$cacheKey = 'navbar_' . md5(json_encode($roles));
|
||||
|
||||
return Cache::remember($cacheKey, 300, function () use ($roles) {
|
||||
$allowedIds = RoleNavItem::getNavItemIdsForRoles($roles);
|
||||
@@ -75,7 +75,7 @@ class NavbarService
|
||||
});
|
||||
|
||||
foreach ($nodes as &$node) {
|
||||
if (! empty($node['children'])) {
|
||||
if (!empty($node['children'])) {
|
||||
$this->sortTreeAlpha($node['children']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user