1 | <?php |
||
7 | class FormCommentModerate extends Model |
||
8 | { |
||
9 | private $_records; |
||
10 | private $_type; |
||
11 | |||
12 | /** |
||
13 | * FormCommentModerate constructor. Pass active record and type of comment system inside. |
||
14 | * @param object $record |
||
|
|||
15 | * @param string $type |
||
16 | */ |
||
17 | public function __construct($records, $type) |
||
23 | |||
24 | /** |
||
25 | * Accept comments and answers |
||
26 | */ |
||
27 | public function make() |
||
31 | |||
32 | /** |
||
33 | * Get moderated records |
||
34 | * @return object |
||
35 | */ |
||
36 | public function getRecord() |
||
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.