| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 50 | protected function doRequest($url, $method, array $options = []) |
||
| 51 | { |
||
| 52 | try { |
||
| 53 | $response = $this->client->request( |
||
| 54 | strtoupper($method), |
||
| 55 | $url, |
||
| 56 | $options |
||
| 57 | ); |
||
| 58 | } catch (ClientException $e) { |
||
| 59 | if ($e->hasResponse()) { |
||
| 60 | throw new BadRequestException('Error while sending request', $this->credentials['provider_name'], $e->getCode(), $e); |
||
| 61 | } |
||
| 62 | } |
||
| 63 | |||
| 64 | return json_decode($response->getBody()->getContents()); |
||
| 65 | } |
||
| 66 | |||
| 83 |
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.