| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public function overviewAction() |
||
| 19 | { |
||
| 20 | $params = array(); |
||
| 21 | $params['importantEvents'] = $this->getRepository()->getImportantEvents(10); |
||
| 22 | $params['events'] = sizeof($this->getRepository()->findAll()); |
||
| 23 | $params['bounced'] = sizeof($this->getRepository()->findBy(array('event' => 'bounced'))); |
||
| 24 | $params['dropped'] = sizeof($this->getRepository()->findBy(array('event' => 'dropped'))); |
||
| 25 | $params['complained'] = sizeof($this->getRepository()->findBy(array('event' => 'complained'))); |
||
| 26 | $params['unsubscribed'] = sizeof($this->getRepository()->findBy(array('event' => 'unsubscribed'))); |
||
| 27 | $params['unopened'] = $this->getRepository()->getEventCount(array('eventType' => 'unopened')); |
||
| 28 | |||
| 29 | return $this->render('AzineMailgunWebhooksBundle::overview.html.twig', $params); |
||
| 30 | } |
||
| 31 | |||
| 47 |