| Conditions | 6 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function process(ContainerBuilder $container): void |
||
| 13 | { |
||
| 14 | // if there are no metadata, then we are in debug mode, no need to clean up the container |
||
| 15 | if (!$container->getParameter('goetas_webservices.soap.metadata')) { |
||
| 16 | return; |
||
| 17 | } |
||
| 18 | |||
| 19 | foreach ($container->getDefinitions() as $id => $definition) { |
||
| 20 | if (false === strpos($id, 'goetas_webservices.soap.metadata_loader.array') && !$definition->isSynthetic() && $definition->isPublic()) { |
||
| 21 | $definition->setPublic(false); |
||
| 22 | } |
||
| 26 |
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