Rating | Name | Duplication | Size | Complexity | CRAP | Changes | Bugs | Features |
---|---|---|---|---|---|---|---|---|
B | IpAddressIdentityResolver::getIdentity() | 0 | 11 | 5 | 5 | 0 | 0 | 0 |
A | RateLimit\InMemoryRateLimiter::init() | 0 | 4 | 1 | 1 | 0 | 0 | 0 |
A | RateLimit\RedisRateLimiter::get() | 0 | 5 | 2 | 2 | 0 | 0 | 0 |
A | Middleware\Options::getDefaultOptions() | 0 | 6 | 1 | 1 | 0 | 0 | 0 |
A | RateLimitMiddleware::setRateLimitHeaders() | 0 | 5 | 1 | 1 | 0 | 0 | 0 |
A | AbstractRateLimiter::__construct() | 0 | 3 | 1 | 1 | 0 | 0 | 0 |
A | RateLimitMiddleware::isWhitelisted() | 0 | 3 | 1 | 1 | 0 | 0 | 0 |
A | RateLimitMiddleware::__construct() | 0 | 4 | 1 | 1 | 0 | 0 | 0 |
A | RateLimiterFactory::createRedisBackedRateLimiter() | 0 | 11 | 2 | 2.01 | 0 | 0 | 0 |
A | Middleware\Options::__construct() | 0 | 3 | 1 | 1 | 0 | 0 | 0 |
A | RateLimitExceededException::forKey() | 0 | 4 | 1 | 1 | 0 | 0 | 0 |
A | RateLimitMiddleware::createDefault() | 0 | 5 | 1 | 1 | 0 | 0 | 0 |
A | RateLimitMiddleware::onLimitExceeded() | 0 | 7 | 1 | 1 | 0 | 0 | 0 |
A | RateLimit\AbstractRateLimiter::hit() | 0 | 9 | 3 | 3 | 0 | 0 | 0 |
A | RateLimitMiddleware::onBelowLimit() | 0 | 3 | 1 | 1 | 0 | 0 | 0 |