| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 1 | public function indexAction() |
|
| 28 | { |
||
| 29 | 1 | $em = $this->getDoctrine()->getManager(); |
|
| 30 | 1 | $countArticles = $em->getRepository("AppBundle:Article") |
|
| 31 | 1 | ->getCountArticles(); |
|
| 32 | |||
| 33 | 1 | $countComments = $em->getRepository("AppBundle:Comment") |
|
| 34 | 1 | ->getCountComments(); |
|
| 35 | |||
| 36 | 1 | $countUsers = $em->getRepository("AppBundle:User") |
|
| 37 | 1 | ->getCountUsers(); |
|
| 38 | |||
| 39 | return [ |
||
| 40 | 1 | 'countArticles' => $countArticles['countArticles'], |
|
| 41 | 1 | 'countComments' => $countComments['countComments'], |
|
| 42 | 1 | 'countUsers' => $countUsers['countUsers'], |
|
| 43 | 1 | ]; |
|
| 44 | } |
||
| 45 | |||
| 58 |