| Percentage | Lines | ||
|---|---|---|---|
| CurlModel |
|
100 % | 63 |
| WeatherController |
|
100 % | 43 |
| WeatherModel |
|
100 % | 124 |
| WeatherAPIController |
|
100 % | 60 |
| CRAP Score | Lines | ||
|---|---|---|---|
| CurlModel::getMultiCurl() | 5 | 33 | |
| WeatherModel::getWeatherMulti() | 4 | 16 | |
| WeatherAPIController::getWeather() | 4 | 19 | |
| WeatherAPIController::indexAction() | 4 | 19 | |
| WeatherController::indexAction() | 3 | 30 | |
| WeatherModel::formatResponse() | 3 | 11 | |
| WeatherModel::convertLocation() | 2 | 16 | |
| WeatherModel::getWeather() | 2 | 6 | |
| CurlModel::getCurl() | 1 | 14 | |
| WeatherModel::setBaseURL() | 1 | 3 | |