| Percentage | Lines | ||
|---|---|---|---|
| Request |
|
94 % | 76 |
| UnsupportedHttpMethodException |
|
100 % | 5 |
| NotFound404ExceptionHandler |
|
100 % | 7 |
| FallbackExceptionHandler |
|
100 % | 7 |
| NotFound404Exception |
|
100 % | 5 |
| UnsupportedResponseTypeException |
|
100 % | 19 |
| RedirectController |
|
100 % | 12 |
| UnsupportedParamTypeException |
|
100 % | 10 |
| NonCallableHandlerException |
|
100 % | 10 |
| UnsupportedRouterConfigureCallableParamException |
|
100 % | 5 |
| CRAP Score | Lines | ||
|---|---|---|---|
| PathValidator::hasValidParameterOrder() | 30 | 17 | |
| Routes::addRoute() | 7 | 34 | |
| Request::get() | 6 | 10 | |
| Router::resolveMiddlewares() | 6 | 9 | |
| RouteParams::getParams() | 5 | 44 | |
| Route::run() | 4 | 19 | |
| PathValidator::hasValidFormat() | 4 | 15 | |
| PathValidator::isValid() | 3 | 11 | |
| PathValidator::hasEmptyParts() | 3 | 11 | |
| Router::handleException() | 3 | 20 | |