Showing 3 of 3 total issues
Method getHandlerFromArray
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function getHandlerFromArray(array $handler_array, ?callable $callbackOnBefore, ?callable $callbackOnAfter): iOnRoute { $handler = null; $first_element = $handler_array[0];
Method handleRouteRequest
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function handleRouteRequest(RequestInterface $request = null): bool { $dispatcher = $this->getDispatcher(); $request = $request ?? ServerRequestFactory::fromGlobals();
Function getHandlerFromArray
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
private static function getHandlerFromArray(array $handler_array, ?callable $callbackOnBefore, ?callable $callbackOnAfter): iOnRoute { $handler = null; $first_element = $handler_array[0];
- Read upRead up