| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 92.86% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class EventDispatcher |
||
| 15 | { |
||
| 16 | private $version = '4.2'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var SymfonyEventDispatcher |
||
| 20 | */ |
||
| 21 | private $dispatcher; |
||
| 22 | |||
| 23 | 1 | public function __construct() |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | public function addSubscriber(EventSubscriberInterface $subscriber) |
|
| 37 | { |
||
| 38 | 1 | $this->dispatcher->addSubscriber($subscriber); |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param Event $event |
||
| 43 | * @param string $eventName |
||
| 44 | * |
||
| 45 | * @return \Symfony\Component\EventDispatcher\Event|\Symfony\Contract\EventDispatcher\Event |
||
|
|
|||
| 46 | */ |
||
| 47 | 1 | public function dispatch($event, $eventName = null) |
|
| 54 | } |
||
| 55 | } |
||
| 57 |
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