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