Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
22 | public function deleteSegment($id) |
||
23 | { |
||
24 | $em = $this->getEntityManager(); |
||
25 | $qb = $em->createQueryBuilder(); |
||
26 | $qb->select('s') |
||
27 | ->from('KunstmaanDashboardBundle:AnalyticsSegment', 's') |
||
28 | ->where('s.id = :id') |
||
29 | ->setParameter('id', $id); |
||
30 | |||
31 | $results = $qb->getQuery()->getResult(); |
||
32 | if ($results) { |
||
33 | $em->remove($results[0]); |
||
34 | $em->flush(); |
||
35 | } |
||
36 | } |
||
37 | |||
56 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.