Code Duplication    Length = 10-10 lines in 2 locations

api/midgard/query/builder.php 1 location

@@ 31-40 (lines=10) @@
28
        }
29
    }
30
31
    public function execute()
32
    {
33
        $this->check_groups();
34
        $this->qb->select('c');
35
        $this->pre_execution();
36
        $query = $this->qb->getQuery();
37
        $result = $query->getResult();
38
        $this->post_execution();
39
        return $result;
40
    }
41
}
42

src/query.php 1 location

@@ 126-135 (lines=10) @@
123
        return true;
124
    }
125
126
    public function count()
127
    {
128
        $this->check_groups();
129
        $this->qb->select("count(c.id)");
130
        $this->pre_execution();
131
        $count = intval($this->qb->getQuery()->getSingleScalarResult());
132
133
        $this->post_execution();
134
        return $count;
135
    }
136
137
    public function set_limit($limit)
138
    {