Conditions | 7 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
57 | function c (string $name): ?NetObject |
||
58 | { |
||
59 | if (is_int ($name) && ($object = _c($name)) !== null) |
||
60 | return $object; |
||
61 | |||
62 | foreach (Components::getObjects () as $selector => $reference) |
||
63 | { |
||
64 | $object = $reference->get (); |
||
65 | |||
66 | if ($object === null) |
||
67 | continue; |
||
68 | |||
69 | try |
||
70 | { |
||
71 | if ($object->name == $name) |
||
72 | return $object; |
||
73 | } |
||
74 | |||
75 | catch (\Throwable $e) {} |
||
76 | } |
||
77 | |||
78 | return null; |
||
79 | } |
||
80 |
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