| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function onAuditEvent(LifecycleEvent $event): LifecycleEvent |
||
| 34 | { |
||
| 35 | foreach ($this->auditor->getProviders() as $provider) { |
||
| 36 | if ($provider->supportsStorage()) { |
||
| 37 | try { |
||
| 38 | $provider->persist($event); |
||
| 39 | } catch (Exception) { |
||
| 40 | // do nothing to ensure other providers are called |
||
| 41 | } |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | return $event; |
||
| 46 | } |
||
| 48 |