| 1 | <?php |
||
| 8 | class Comment extends ActiveRecordModelExtender |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var string $tableName name of the database table. |
||
| 13 | */ |
||
| 14 | protected $tableName = "ramverk1_comments"; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Columns in the table. |
||
| 18 | * |
||
| 19 | * @var integer $id primary key auto incremented. |
||
| 20 | */ |
||
| 21 | public $id; |
||
| 22 | public $type; # question/answer/comment |
||
| 23 | public $parentId; # All posts have different ids |
||
| 24 | |||
| 25 | public $title; |
||
| 26 | public $tags; |
||
| 27 | public $text; |
||
| 28 | |||
| 29 | public $created; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns post with markdown and gravatar |
||
| 33 | * @param string $sql |
||
| 34 | * @param array $param |
||
|
|
|||
| 35 | * |
||
| 36 | * @return array |
||
| 37 | */ |
||
| 38 | 2 | public function getComments($sql, $params) |
|
| 51 | } |
||
| 52 |
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.