Percentage | Lines | ||
---|---|---|---|
Flap |
|
0 % | 103 |
PredisStorage |
|
61 % | 87 |
Flaps |
|
77 % | 50 |
DoctrineCacheAdapter |
|
86 % | 61 |
LeakyBucketStrategy |
|
88 % | 153 |
ViolateAlwaysStrategy |
|
100 % | 20 |
ExceptionViolationHandler |
|
100 % | 12 |
HttpViolationHandler |
|
100 % | 29 |
PassiveViolationHandler |
|
100 % | 11 |
CRAP Score | Lines | ||
---|---|---|---|
Flap::isViolator() | 12 | 11 | |
Flap::limit() | 6 | 8 | |
Flap::ensureViolationHandler() | 6 | 6 | |
LeakyBucketStrategy::isViolator() | 5 | 36 | |
LeakyBucketStrategy::setTimeSpan() | 4 | 14 | |
LeakyBucketStrategy::setRequestsPerTimeSpan() | 3 | 11 | |
LeakyBucketStrategy::parseTime() | 3 | 13 | |
Flap::__construct() | 2 | 5 | |
Flap::pushThrottlingStrategy() | 2 | 5 | |
Flap::setViolationHandler() | 2 | 4 | |