Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
1 | <?php |
||
68 | 2 | public function limits(array $limits = []) |
|
69 | { |
||
70 | $headers = [ |
||
71 | 2 | 'X-Query-Limit-Limit', |
|
72 | 2 | 'X-Query-Limit-Remaining', |
|
73 | 'X-Query-Limit-Request-Queries' |
||
74 | 2 | ]; |
|
75 | |||
76 | 2 | foreach ($headers as $header) { |
|
77 | 2 | $limits[$header] = $this->getHeader($header); |
|
78 | 2 | } |
|
79 | |||
80 | 2 | return $limits; |
|
81 | } |
||
82 | |||
127 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.