Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
43 | public function countCommentsQuery($post) |
||
44 | { |
||
45 | $qb = $this->createQueryBuilder('c'); |
||
46 | |||
47 | return $qb |
||
48 | ->select('COUNT(c.id)') |
||
49 | ->where($qb->expr()->eq('c.status', ':status')) |
||
50 | ->andWhere($qb->expr()->eq('c.post', ':post')) |
||
51 | ->setParameters([ |
||
52 | 'status' => CommentInterface::STATUS_VALID, |
||
53 | 'post' => $post, |
||
54 | ]); |
||
55 | } |
||
56 | } |
||
57 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.