| Conditions | 5 |
| Paths | 6 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function getEventsManager() |
||
| 41 | { |
||
| 42 | $di = Di::getDefault(); |
||
| 43 | |||
| 44 | if (!empty($this->eventsManager)) { |
||
| 45 | $manager = $this->eventsManager; |
||
| 46 | } elseif ($di->has('eventsManager')) { |
||
| 47 | $manager = $di->get('eventsManager'); |
||
| 48 | } |
||
| 49 | |||
| 50 | if (isset($manager) && $manager instanceof EventsManager) { |
||
| 51 | return $manager; |
||
| 52 | } |
||
| 53 | |||
| 54 | return null; |
||
| 55 | } |
||
| 73 |
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