Code

Rating   Name Duplication Size Complexity CRAP Changes Bugs Features
D ApiNette\Validator\Validator::validate() 0 17 9 9 0 0 0
B Validator\Validator::validateRules() 0 17 5 5 0 0 0
B Kelemen\ApiNette\Api::run() 0 18 5 5 0 0 0
B Presenter\ApiPresenter::actionDefault() 0 18 5 5 0 0 0
B Middleware\CORSHeaders::__invoke() 0 14 5 5.01 0 0 0
B OptionsPreflightHandler::__invoke() 0 10 5 5 0 0 0
A Route\RouteContainer::getRoutes() 0 8 4 4 0 0 0
A ApiNette\Runner::getMiddleware() 17 9 4 4.03 0 0 0
A Middleware\CORSHeaders::applyCustom() 0 6 3 3 0 0 0
A ApiNette\Api::getFromContainer() 12 7 3 3.04 0 0 0
A Route\ResolvedRoute::__construct() 0 3 1 1 0 0 0
A Middleware\CORSHeaders::allowedOrigins() 0 3 1 1 0 0 0
A OptionsPreflightHandler::setAllowHeaders() 0 3 1 1 0 0 0
A Kelemen\ApiNette\Api::__construct() 0 12 3 3 0 0 0
A ApiNette\Logger\Logger::__construct() 0 3 1 1 0 0 0