Artem-Schander/L5Modular

View on GitHub
src/ModuleServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Showing 0 of 1 total issue

Function registerRoute has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Wontfix

protected function registerRoute(string $module, string $path, string $namespace, string $type)
{
if ($type === 'simple') $file = 'routes.php';
else $file = "{$type}.php";
 
 
Severity: Minor
Found in src/ModuleServiceProvider.php - About 35 mins to fix

There are no issues that match your filters.

Category
Status