| Percentage | Lines | ||
|---|---|---|---|
| UnitMeasure |
|
100 % | 480 |
| Distance |
|
100 % | 127 |
| FileSize |
|
100 % | 131 |
| LiquidVolume |
|
100 % | 147 |
| Weight |
|
100 % | 141 |
| Calculatable |
|
100 % | 120 |
| UnitsManager |
|
100 % | 119 |
| UnitsServiceProvider |
|
100 % | 74 |
| CRAP Score | Lines | ||
|---|---|---|---|
| UnitMeasure::format() | 4 | 11 | |
| UnitMeasure::setSymbols() | 3 | 10 | |
| UnitMeasure::setNames() | 3 | 10 | |
| UnitMeasure::getRatio() | 2 | 11 | |
| UnitMeasure::getRatios() | 2 | 4 | |
| LiquidVolume::getRatio() | 2 | 11 | |
| Weight::getRatio() | 2 | 11 | |
| UnitMeasure::to() | 2 | 16 | |
| UnitMeasure::checkUnit() | 2 | 10 | |
| Calculatable::calculate() | 2 | 15 | |