Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function parse(ContextInterface $context, Cursor $cursor) |
||
24 | { |
||
25 | $matches = RegexHelper::matchAll(self::REGEXP_REPLY, $cursor->getLine()); |
||
26 | |||
27 | if (null === $matches) { |
||
28 | return false; |
||
29 | } |
||
30 | $route = route('discuss.post.show', ['id' => $matches['post']]); |
||
31 | |||
32 | $reply = new Reply($route, $matches['user']); |
||
33 | |||
34 | $cursor->advanceBy(strlen($matches[0])); |
||
35 | $context->addBlock($reply); |
||
36 | |||
37 | return true; |
||
38 | } |
||
39 | } |
||
40 |
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
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.