| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 9 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php  | 
            ||
| 19 | public function onEventCreated(MailgunWebhookEvent $event)  | 
            ||
| 20 |     { | 
            ||
| 21 | $eventType = $event->getMailgunEvent()->getEvent();  | 
            ||
| 22 |         if ($eventType === 'complained') { | 
            ||
| 23 |             if ($this->sendNotifications) { | 
            ||
| 24 | $this->mailer->sendSpamComplaintNotification($event->getMailgunEvent()->getId());  | 
            ||
| 25 | }  | 
            ||
| 26 | }  | 
            ||
| 27 | }  | 
            ||
| 28 | }  |