| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 71 | protected function getQueryLimitHeaders(array $limits = []) |
||
| 72 | { |
||
| 73 | $headers = [ |
||
| 74 | 'X-Query-Limit-Limit', |
||
| 75 | 'X-Query-Limit-Remaining', |
||
| 76 | 'X-Query-Limit-Request-Queries' |
||
| 77 | ]; |
||
| 78 | |||
| 79 | foreach ($headers as $header) { |
||
| 80 | $limits[$header] = $this->getHeader($header); |
||
| 81 | } |
||
| 82 | |||
| 83 | return $limits; |
||
| 84 | } |
||
| 85 | |||
| 130 |
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.