Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
55 | protected function attachEvents(DiInterface $container, array $listeners): bool |
||
56 | { |
||
57 | if (empty($listeners)) { |
||
58 | return false; |
||
59 | } |
||
60 | $eventsManager = $container->get('eventsManager'); |
||
61 | |||
62 | //navigate the list of listener and create the events |
||
63 | foreach ($listeners as $key => $listen) { |
||
64 | //create the events given the key |
||
65 | $eventsManager->attach( |
||
66 | $key, |
||
67 | new $listen() |
||
68 | ); |
||
69 | } |
||
70 | |||
71 | return true; |
||
72 | } |
||
74 |
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