| Conditions | 3 | 
| Paths | 5 | 
| Total Lines | 13 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 46 | public function process(Event $event)  | 
            ||
| 47 |     { | 
            ||
| 48 |         try { | 
            ||
| 49 | $this->eventDispatcher->dispatch($event->getOriginalName(), $event);  | 
            ||
| 50 | $this->eventDispatcher->dispatch(ProcessedEvents::SUCCESS, new SuccessProcessedEvent($event));  | 
            ||
| 51 |         } catch (\Exception $e) { | 
            ||
| 52 | $maxRetryCount = $this->config['retry_count'][$this->eventsConfig[$event->getOriginalName()]['type']];  | 
            ||
| 53 | $this->eventDispatcher->dispatch(ProcessedEvents::FAIL, new FailProcessedEvent($event, $maxRetryCount));  | 
            ||
| 54 |             if ($event->isFailed()) { | 
            ||
| 55 | throw $e;  | 
            ||
| 56 | }  | 
            ||
| 57 | }  | 
            ||
| 58 | }  | 
            ||
| 59 | }  | 
            ||
| 60 |