style updates

This commit is contained in:
Mark Gregory
2026-07-24 14:59:44 +01:00
parent 24ab771cd3
commit dd23205d0b
482 changed files with 7173 additions and 1435 deletions
@@ -21,14 +21,18 @@ final class LaravelModuleRegistry implements ModuleRegistry
];
}
usort($modules, fn (array $a, array $b): int => $a['name'] <=> $b['name']);
return $modules;
}
public function enabled(string $name): bool
{
foreach ($this->all() as $module) {
if (strcasecmp($module['name'], $name) === 0) return $module['enabled'];
if (strcasecmp($module['name'], $name) === 0) {
return $module['enabled'];
}
}
return false;
}
}