| Conditions | 5 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function discove() |
||
| 32 | { |
||
| 33 | $files = $this->locator->listFiles('Events/'); |
||
| 34 | |||
| 35 | foreach ($files as $file) { |
||
| 36 | $className = $this->locator->getClassname($file); |
||
| 37 | |||
| 38 | if ($className === '' || ! class_exists($className) || ! is_a($className, EventListenerInterface::class, true)) { |
||
| 39 | continue; |
||
| 40 | } |
||
| 41 | |||
| 42 | Services::factory($className)->listen($this->event); |
||
| 43 | } |
||
| 45 | } |
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