| Conditions | 6 |
| Paths | 6 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function act(InformationCollected $event): void |
||
| 52 | { |
||
| 53 | $config = $this->utility->getConfigPerContentType($event->getContentType()); |
||
| 54 | |||
| 55 | foreach ($this->actions as $action) { |
||
| 56 | if ($this->utility->isActionAllowedToRun($action, $config)) { |
||
| 57 | try { |
||
| 58 | $action->act($event); |
||
| 59 | } catch (ActionFailedException $e) { |
||
| 60 | $this->logger |
||
| 61 | ->error($e->getMessage()); |
||
| 62 | |||
| 63 | if ($this->debug) { |
||
| 64 | throw $e; |
||
| 65 | } |
||
| 66 | |||
| 67 | if ($action instanceof CrucialActionInterface) { |
||
| 68 | break; |
||
| 69 | } |
||
| 70 | } |
||
| 71 | } |
||
| 72 | } |
||
| 73 | } |
||
| 74 | |||
| 85 |