Code

Rating   Name Duplication Size Complexity CRAP Changes Bugs Features
B Validators\PathValidator::isValid() 0 18 9 9 0 0 0
A Entities\RouteParams::getParams() 0 27 5 5 3 0 0
A Router\Configure\Routes::addRoute() 0 10 6 6 0 0 0
A ErrorHandlingTest.php$0 ➔ test_handle_handled_exception_with_anonymous_class() 0 26 1 ? 0 0 0
A Route::calculateDefaultPathPattern() 0 12 5 5 0 0 0
A ErrorHandlingTest.php$0 ➔ test_throws_exception_when_param_has_no_type() 0 16 1 ? 0 0 0
A RouterResponseTest::test_json_response_headers() 0 16 1 ? 1 0 0
A ErrorHandlingTest.php$0 ➔ test_throws_exception_when_param_is_no_scalar() 0 16 1 ? 0 0 0
A RouterResponseTest::test_response_headers() 0 16 1 ? 1 0 0
A ErrorHandlingTest.php$0 ➔ test_throws_exception_if_response_is_not_a_string_or_stringable() 0 16 1 ? 0 0 0
A ErrorHandlingTest::test_handle_handled_exception_with_anonymous_function() 0 14 1 ? 0 0 0
A ErrorHandlingTest::test_custom_fallback_handler() 0 14 1 ? 1 0 0
A ErrorHandlingTest::test_custom_404_handler() 0 13 1 ? 1 0 0
A ErrorHandlingTest.php$0 ➔ test_configure_non_callable_handler() 0 13 1 ? 0 0 0
A RouterResponseTest::test_json_response() 0 12 1 ? 0 0 0