add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
+2 -2
View File
@@ -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']);
}
}