| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | protected function getResult(string $url): array |
||
| 60 | { |
||
| 61 | if ($this->handler->has($url)) { |
||
| 62 | return $this->handler->get($url); |
||
| 63 | } |
||
| 64 | |||
| 65 | $response = $this->client->get($url); |
||
| 66 | |||
| 67 | ExceptionThrower::throwException($response->getStatusCode(), $response->getMessage()); |
||
| 68 | |||
| 69 | return $response->getData(); |
||
| 70 | } |
||
| 71 | } |
||
| 72 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.