| Percentage | Lines | ||
|---|---|---|---|
| HelloWorld |
|
100 % | 8 |
| Temperature |
|
100 % | 124 |
| Unit |
|
100 % | 93 |
| Convert |
|
100 % | 23 |
| City |
|
100 % | 43 |
| location |
|
100 % | 26 |
| wind |
|
100 % | 25 |
| Weather |
|
100 % | 30 |
| CRAP Score | Lines | ||
|---|---|---|---|
| Unit::getUnit() | 4 | 10 | |
| Unit::getFormatted() | 2 | 8 | |
| Weather::__toString() | 2 | 4 | |
| HelloWorld::__construct() | 1 | 4 | |
| Unit::__construct() | 1 | 6 | |
| Unit::__toString() | 1 | 4 | |
| Unit::getValue() | 1 | 4 | |
| Unit::getDescription() | 1 | 4 | |
| Temperature::__toString() | 1 | 4 | |
| Temperature::__construct() | 1 | 18 | |