| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait EventDispatcherAwareTrait |
||
| 11 | { |
||
| 12 | /** @var EventDispatcherInterface|null */ |
||
| 13 | protected $eventDispatcher = null; |
||
| 14 | |||
| 15 | public function setEventDispatcher(EventDispatcherInterface $eventDispatcher) |
||
| 16 | { |
||
| 17 | $this->eventDispatcher = $eventDispatcher; |
||
| 18 | } |
||
| 19 | |||
| 20 | protected function dispatchEvent(string $eventName, AbstractAMQPEvent $event) |
||
| 21 | { |
||
| 22 | if (null !== $this->eventDispatcher) { |
||
| 23 | $this->eventDispatcher->dispatch($event, $eventName); |
||
| 24 | } |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getEventDispatcher(): ?EventDispatcherInterface |
||
| 30 | } |
||
| 31 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths