| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function onEventCreated(MailgunWebhookEvent $event) |
||
| 40 | { |
||
| 41 | $eventType = $event->getMailgunEvent()->getEvent(); |
||
| 42 | if ($eventType === 'complained') { |
||
| 43 | if ($this->sendNotifications) { |
||
| 44 | $this->mailer->sendSpamComplaintNotification($event->getMailgunEvent()->getId()); |
||
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |