| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 91.67% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class WeatherApiController implements ContainerInjectableInterface |
||
| 13 | { |
||
| 14 | use ContainerInjectableTrait; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * function checks if input is an ip address and if so, if it's PIv4 or Ipv6 |
||
| 18 | */ |
||
| 19 | // public function indexAction() |
||
| 20 | // { |
||
| 21 | |||
| 22 | // } |
||
| 23 | |||
| 24 | 1 | public function weatherActionPost() : array |
|
| 42 |
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type. Let?s take a look at an example: