1 | <?php |
||
13 | class Comment extends ActiveRecordModel |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var string $tableName name of the database table. |
||
18 | */ |
||
19 | protected $tableName = "Comments"; |
||
20 | //protected $idField = 'idcomment'; |
||
|
|||
21 | |||
22 | /** |
||
23 | * Columns in the table. |
||
24 | * |
||
25 | * @var integer $id primary key auto incremented. |
||
26 | */ |
||
27 | public $idcomment; |
||
28 | public $commenttext; |
||
29 | public $idpost; |
||
30 | public $postuser; |
||
31 | |||
32 | 1 | public function getInformation($email) |
|
37 | |||
38 | public function getAllCommentsFromSpecificPost($params) |
||
44 | |||
45 | public function getAllCommentAndPostsFromSpecificUser($email) |
||
51 | |||
52 | public function getNext() |
||
56 | } |
||
57 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.