Total Complexity | 5 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class ListenerProvider implements ListenerProviderInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private $listener; |
||
16 | |||
17 | /** |
||
18 | * ListenerProvider constructor. |
||
19 | * |
||
20 | * @param array $listener |
||
21 | */ |
||
22 | 2 | public function __construct(array $listener) |
|
23 | { |
||
24 | 2 | $this->listener = $listener; |
|
25 | 2 | } |
|
26 | |||
27 | /** |
||
28 | * @param \DataProvider\EventDataProvider $eventDataProvider |
||
29 | */ |
||
30 | 2 | public function provideListener(EventDataProvider $eventDataProvider): void |
|
37 | } |
||
38 | 2 | } |
|
39 | |||
40 | /** |
||
41 | * @param string $listenerClass |
||
42 | * |
||
43 | * @return \Xervice\Event\Communication\Plugin\Listener\EventListenerInterface |
||
44 | */ |
||
45 | 2 | private function getEventListenerFromClass(string $listenerClass): EventListenerInterface |
|
46 | { |
||
47 | 2 | return new $listenerClass(); |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @param string $eventName |
||
52 | * |
||
53 | * @return string[] |
||
54 | */ |
||
55 | 2 | private function getEventListenerList(string $eventName): array |
|
58 | } |
||
59 | } |
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