| 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 | public $di; |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * Constructor injects with DI container. |
||
| 36 | * |
||
| 37 | */ |
||
| 38 | public function __construct($di = null) |
||
| 42 | /** |
||
| 43 | * Returns post with markdown and gravatar |
||
| 44 | * @param string $sql |
||
| 45 | * @param array $param |
||
|
|
|||
| 46 | * |
||
| 47 | 5 | * @return array |
|
| 48 | */ |
||
| 49 | 5 | public function getComments($sql, $params) |
|
| 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.