| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | 4 | ||
| 59 | $post->comments = $this->getPosts("parentId = ? AND type = ?", [$post->id, "comment"]); |
||
| 60 | 4 | $post->tags = explode(',', $post->tags); |
|
| 61 | |||
| 62 | 4 | $post->img = $this->gravatar($user->email); |
|
| 63 | 4 | $post->markdown = $this->getMD($post->text); |
|
| 64 | 4 | ||
| 65 | 4 | return $post; |
|
| 66 | }, $posts); |
||
| 67 | } |
||
| 68 | } |
||
| 69 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.