style updates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user