CommentComments::getNext()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: root
5
 * Date: 2017-09-27
6
 * Time: 10:27
7
 */
8
9
namespace Radchasay\Comment;
10
11
use \Anax\Database\ActiveRecordModel;
12
13
class CommentComments extends ActiveRecordModel
14
{
15
16
    /**
17
     * @var string $tableName name of the database table.
18
     */
19
    protected $tableName = "CommentComments";
20
    //protected $idField = 'idcomment';
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% of this comment could be valid code. Did you maybe forget this after debugging?

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.

Loading history...
21
22
    /**
23
     * Columns in the table.
24
     *
25
     * @var integer $id primary key auto incremented.
26
     */
27
    public $idcommentc;
28
    public $textcomment;
29
    public $idcommentcomment;
30
    public $postuser;
31
32
    public function getAllCommentFromComments($params)
33
    {
34
        $sql = "Call GetCommentsOfComments(?)";
35
        $res = $this->findAllSql($sql, $params);
36
        $this->getNext();
37
        return $res;
38
    }
39
40
41
    public function getNext()
42
    {
43
        return $this->next();
44
    }
45
}
46