Percentage | Lines | ||
---|---|---|---|
Request |
|
94 % | 64 |
UnsupportedHttpMethodException |
|
100 % | 5 |
NotFound404ExceptionHandler |
|
100 % | 7 |
FallbackExceptionHandler |
|
100 % | 7 |
NotFound404Exception |
|
100 % | 5 |
Response |
|
100 % | 18 |
JsonResponse |
|
100 % | 11 |
UnsupportedResponseTypeException |
|
100 % | 19 |
RedirectController |
|
100 % | 12 |
UnsupportedParamTypeException |
|
100 % | 10 |
CRAP Score | Lines | ||
---|---|---|---|
PathValidator::isValid() | 9 | 32 | |
Routes::addRoute() | 6 | 24 | |
Route::calculateDefaultPathPattern() | 5 | 19 | |
RouteParams::getParams() | 5 | 44 | |
Route::run() | 4 | 19 | |
Router::findRoute() | 3 | 9 | |
Router::handleException() | 3 | 16 | |
Request::get() | 2 | 10 | |
Response::__toString() | 2 | 7 | |
JsonResponse::__construct() | 2 | 6 | |