Percentage | Lines | ||
---|---|---|---|
WeatherController |
|
91 % | 183 |
Ip |
|
93 % | 127 |
Curl |
|
100 % | 69 |
Weather |
|
100 % | 125 |
CRAP Score | Lines | ||
---|---|---|---|
Weather::validateCoord() | 8 | 20 | |
Ip::validateIp() | 5 | 29 | |
WeatherController::indexActionPost() | 5 | 57 | |
Ip::validateCoord() | 4 | 21 | |
Curl::fetchMultiUrl() | 4 | 37 | |
WeatherController::historyActionGet() | 3 | 32 | |
WeatherController::forecastActionGet() | 3 | 31 | |
Ip::getIpAddress() | 3 | 5 | |
Weather::weatherHistory() | 2 | 20 | |
Ip::__construct() | 1 | 4 | |