| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function getEventsForStatus(string $statusIdentifier): array |
||
| 37 | { |
||
| 38 | $eventKey = sprintf('%s.%s', self::EVENT_MAP_KEY, $statusIdentifier); |
||
| 39 | $eventClasses = $this->configAccessor->get($eventKey, []); |
||
| 40 | |||
| 41 | if (empty($eventClasses) || !is_array($eventClasses)) { |
||
| 42 | return []; |
||
| 43 | } |
||
| 44 | |||
| 45 | return array_map('trim', $eventClasses); |
||
| 46 | } |
||
| 67 |