| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function handle($event): void |
||
| 32 | { |
||
| 33 | $eventAction = method_exists($event, 'broadcastAnalyticsActionAs') |
||
| 34 | ? $event->broadcastAnalyticsActionAs($this->analytics) |
||
| 35 | : class_basename($event); |
||
| 36 | |||
| 37 | $this->analytics->setEventAction($eventAction); |
||
| 38 | |||
| 39 | if (method_exists($event, 'withAnalytics')) { |
||
| 40 | $event->withAnalytics($this->analytics); |
||
| 41 | } |
||
| 42 | |||
| 43 | $this->analytics->sendEvent(); |
||
| 44 | } |
||
| 46 |