Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2.0932 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
49 | 2 | public function result() |
|
50 | { |
||
51 | 2 | $body = $this->body; |
|
52 | 2 | $content = json_decode($body, true); |
|
53 | |||
54 | 2 | if (JSON_ERROR_NONE !== json_last_error()) { |
|
55 | 2 | return $body; |
|
56 | } |
||
57 | |||
58 | // Add remainin query limits to the response |
||
59 | $content['limits'] = $this->getQueryLimitHeaders(); |
||
60 | |||
61 | return $content; |
||
62 | } |
||
63 | |||
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.