| Percentage | Lines | ||
|---|---|---|---|
| DarkSky |
|
100 % | 94 |
| WeatherController |
|
100 % | 47 |
| Weather |
|
100 % | 41 |
| Curl |
|
100 % | 24 |
| WeatherJsonController |
|
100 % | 53 |
| CRAP Score | Lines | ||
|---|---|---|---|
| Weather::parseCoordinates() | 4 | 20 | |
| Curl::fetchData() | 4 | 21 | |
| DarkSky::history() | 3 | 17 | |
| DarkSky::addIcons() | 3 | 12 | |
| DarkSky::validateResult() | 2 | 4 | |
| DarkSky::forecast() | 2 | 11 | |
| WeatherController::indexActionPost() | 2 | 26 | |
| Weather::fetchWeather() | 2 | 10 | |
| WeatherJsonController::historyActionGet() | 2 | 9 | |
| WeatherJsonController::forecastActionGet() | 2 | 9 | |