Code

Rating   Name Duplication Size Complexity CRAP Changes Bugs Features
A Yiisoft\Yii\RateLimiter\Counter::hit() 0 9 2 2 0 0 0
A RateLimiter\CounterState::getResetTime() 0 1 1 1 1 0 0
A RateLimiter\Counter::__construct() 0 8 4 4 1 0 0
A LimitRequestsMiddleware::addHeaders() 0 4 1 1 0 0 0
A SimpleCacheStorage::__construct() 0 0 1 1 1 0 0
A LimitRequestsMiddleware::createErrorResponse() 0 3 1 1 0 0 0
A RateLimiter\CounterState::isLimitReached() 0 1 1 1 1 0 0
A Counter::getLastStoredTheoreticalNextIncrementTime() 0 1 1 1 1 0 0
A Storage\SimpleCacheStorage::save() 0 1 1 1 1 0 0
A Policy\LimitCallback::fingerprint() 0 4 3 3 1 0 0
A MicrotimeTimer::nowInMilliseconds() 0 1 1 1 1 0 0
A RateLimiter\CounterState::__construct() 0 0 1 1 1 0 0
A Counter::storeTheoreticalNextIncrementTime() 0 1 1 1 1 0 0
A Storage\SimpleCacheStorage::get() 0 1 1 1 1 0 0
A Policy\LimitCallback::__construct() 0 0 1 1 1 0 0