Rating | Name | Duplication | Size | Complexity | CRAP | Changes | Bugs | Features |
---|---|---|---|---|---|---|---|---|
A | MiddlewareTest.php$0 ➔ createHandler() | 0 | 24 | 1 | ? | 0 | 0 | 0 |
A | Tests\MiddlewareTest::testProcess() | 0 | 16 | 3 | ? | 1 | 0 | 0 |
A | MiddlewareTest::testProcessSkip() | 0 | 10 | 2 | ? | 1 | 0 | 0 |
A | RateLimiter\Middleware::process() | 0 | 10 | 3 | 3 | 1 | 0 | 0 |
A | Tests\MiddlewareTest::tearDown() | 0 | 2 | 1 | ? | 1 | 0 | 0 |
A | RateLimiter\Middleware::setLimitPeriod() | 0 | 1 | 1 | 1 | 1 | 0 | 0 |
A | MiddlewareTest.php$0 ➔ __construct() | 0 | 3 | 1 | ? | 1 | 0 | 0 |
A | MiddlewareTest::createNameCallback() | 0 | 2 | 1 | ? | 1 | 0 | 0 |
A | RateLimiter\Middleware::addHeaders() | 0 | 3 | 1 | 1 | 1 | 0 | 0 |
A | RateLimiter\Tests\MiddlewareTest::setUp() | 0 | 2 | 1 | ? | 1 | 0 | 0 |
A | MiddlewareTest::testSetLimitPeriod() | 0 | 5 | 1 | ? | 1 | 0 | 0 |
A | MiddlewareTest.php$0 ➔ isHandled() | 0 | 3 | 1 | ? | 1 | 0 | 0 |
A | RateLimiter\Middleware::__construct() | 0 | 3 | 1 | 1 | 1 | 0 | 0 |
A | MiddlewareTest::createRateLimiter() | 0 | 1 | 1 | ? | 1 | 0 | 0 |
A | MiddlewareTest::dataLimitPeriod() | 0 | 3 | 1 | ? | 1 | 0 | 0 |